本文整理了Java中org.springframework.security.authentication.AnonymousAuthenticationToken.extractKeyHash()
方法的一些代码示例,展示了AnonymousAuthenticationToken.extractKeyHash()
的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。AnonymousAuthenticationToken.extractKeyHash()
方法的具体详情如下:
包路径:org.springframework.security.authentication.AnonymousAuthenticationToken
类名称:AnonymousAuthenticationToken
方法名:extractKeyHash
暂无
代码示例来源:origin: spring-projects/spring-security
/**
* Constructor.
*
* @param key to identify if this object made by an authorised client
* @param principal the principal (typically a <code>UserDetails</code>)
* @param authorities the authorities granted to the principal
* @throws IllegalArgumentException if a <code>null</code> was passed
*/
public AnonymousAuthenticationToken(String key, Object principal,
Collection<? extends GrantedAuthority> authorities) {
this(extractKeyHash(key), principal, authorities);
}
代码示例来源:origin: org.springframework.security/spring-security-core
/**
* Constructor.
*
* @param key to identify if this object made by an authorised client
* @param principal the principal (typically a <code>UserDetails</code>)
* @param authorities the authorities granted to the principal
* @throws IllegalArgumentException if a <code>null</code> was passed
*/
public AnonymousAuthenticationToken(String key, Object principal,
Collection<? extends GrantedAuthority> authorities) {
this(extractKeyHash(key), principal, authorities);
}
代码示例来源:origin: apache/servicemix-bundles
/**
* Constructor.
*
* @param key to identify if this object made by an authorised client
* @param principal the principal (typically a <code>UserDetails</code>)
* @param authorities the authorities granted to the principal
* @throws IllegalArgumentException if a <code>null</code> was passed
*/
public AnonymousAuthenticationToken(String key, Object principal,
Collection<? extends GrantedAuthority> authorities) {
this(extractKeyHash(key), principal, authorities);
}
内容来源于网络,如有侵权,请联系作者删除!