Class OAuth2FormLoginAuthenticationToken

java.lang.Object
org.springframework.security.authentication.AbstractAuthenticationToken
org.springframework.security.authentication.UsernamePasswordAuthenticationToken
cn.herodotus.engine.oauth2.authentication.provider.OAuth2FormLoginAuthenticationToken
All Implemented Interfaces:
Serializable, Principal, org.springframework.security.core.Authentication, org.springframework.security.core.CredentialsContainer

public class OAuth2FormLoginAuthenticationToken extends org.springframework.security.authentication.UsernamePasswordAuthenticationToken

Description: OAuth2 (Security) 表单登录 Token

Author:
: gengwei.zheng
See Also:
Date:
: 2022/4/12 10:24
  • Constructor Summary

    Constructors
    Constructor
    Description
     
    OAuth2FormLoginAuthenticationToken(Object principal, Object credentials, Collection<? extends org.springframework.security.core.GrantedAuthority> authorities)
     
  • Method Summary

    Methods inherited from class org.springframework.security.authentication.UsernamePasswordAuthenticationToken

    authenticated, eraseCredentials, getCredentials, getPrincipal, setAuthenticated, unauthenticated

    Methods inherited from class org.springframework.security.authentication.AbstractAuthenticationToken

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

    Methods inherited from class java.lang.Object

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

    Methods inherited from interface java.security.Principal

    implies
  • Constructor Details

    • OAuth2FormLoginAuthenticationToken

      public OAuth2FormLoginAuthenticationToken(Object principal, Object credentials)
    • OAuth2FormLoginAuthenticationToken

      public OAuth2FormLoginAuthenticationToken(Object principal, Object credentials, Collection<? extends org.springframework.security.core.GrantedAuthority> authorities)