类 UsernamePasswordGrantAuthenticationToken

java.lang.Object
org.springframework.security.authentication.AbstractAuthenticationToken
org.springframework.security.oauth2.server.authorization.authentication.OAuth2AuthorizationGrantAuthenticationToken
cn.bbwres.biscuit.security.oauth2.grant.username.UsernamePasswordGrantAuthenticationToken
所有已实现的接口:
Serializable, Principal, org.springframework.security.core.Authentication, org.springframework.security.core.CredentialsContainer

public class UsernamePasswordGrantAuthenticationToken extends org.springframework.security.oauth2.server.authorization.authentication.OAuth2AuthorizationGrantAuthenticationToken
用户名 密码登录的token
作者:
zhanglinfeng
另请参阅:
  • 字段概要

    字段
    修饰符和类型
    字段
    说明
    static final org.springframework.security.oauth2.core.AuthorizationGrantType
     
  • 构造器概要

    构造器
    限定符
    构造器
    说明
    protected
    UsernamePasswordGrantAuthenticationToken(org.springframework.security.core.Authentication clientPrincipal, Map<String,Object> additionalParameters, String username, String password, String tenantId)
    Sub-class constructor.
  • 方法概要

    修饰符和类型
    方法
    说明
     

    从类继承的方法 org.springframework.security.oauth2.server.authorization.authentication.OAuth2AuthorizationGrantAuthenticationToken

    getAdditionalParameters, getGrantType, getPrincipal

    从类继承的方法 org.springframework.security.authentication.AbstractAuthenticationToken

    equals, eraseCredentials, getAuthorities, getDetails, getName, hashCode, isAuthenticated, setAuthenticated, setDetails, toString

    从类继承的方法 java.lang.Object

    clone, finalize, getClass, notify, notifyAll, wait, wait, wait

    从接口继承的方法 java.security.Principal

    implies
  • 字段详细资料

    • PASSWORD

      public static final org.springframework.security.oauth2.core.AuthorizationGrantType PASSWORD
  • 构造器详细资料

    • UsernamePasswordGrantAuthenticationToken

      protected UsernamePasswordGrantAuthenticationToken(org.springframework.security.core.Authentication clientPrincipal, @Nullable Map<String,Object> additionalParameters, String username, String password, String tenantId)
      Sub-class constructor.
      参数:
      clientPrincipal - the authenticated client principal
      additionalParameters - the additional parameters
  • 方法详细资料

    • getCredentials

      public Object getCredentials()
      指定者:
      getCredentials 在接口中 org.springframework.security.core.Authentication
      覆盖:
      getCredentials 在类中 org.springframework.security.oauth2.server.authorization.authentication.OAuth2AuthorizationGrantAuthenticationToken