org.springframework.security.authentication.AnonymousAuthenticationToken.extractKeyHash()方法的使用及代码示例

x33g5p2x  于2022-01-16 转载在 其他  
字(1.9k)|赞(0)|评价(0)|浏览(83)

本文整理了Java中org.springframework.security.authentication.AnonymousAuthenticationToken.extractKeyHash()方法的一些代码示例,展示了AnonymousAuthenticationToken.extractKeyHash()的具体用法。这些代码示例主要来源于Github/Stackoverflow/Maven等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。AnonymousAuthenticationToken.extractKeyHash()方法的具体详情如下:
包路径:org.springframework.security.authentication.AnonymousAuthenticationToken
类名称:AnonymousAuthenticationToken
方法名:extractKeyHash

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);
}

相关文章