Class OAuth2AuthorizationGrantAuthenticationToken

java.lang.Object
org.springframework.security.authentication.AbstractAuthenticationToken
org.springframework.security.oauth2.server.authorization.authentication.OAuth2AuthorizationGrantAuthenticationToken
All Implemented Interfaces:
Serializable, Principal, org.springframework.security.core.Authentication, org.springframework.security.core.CredentialsContainer
Direct Known Subclasses:
OAuth2AuthorizationCodeAuthenticationToken, OAuth2ClientCredentialsAuthenticationToken, OAuth2DeviceCodeAuthenticationToken, OAuth2RefreshTokenAuthenticationToken, OAuth2TokenExchangeAuthenticationToken

public class OAuth2AuthorizationGrantAuthenticationToken extends org.springframework.security.authentication.AbstractAuthenticationToken
Base implementation of an Authentication representing an OAuth 2.0 Authorization Grant.
Since:
7.0
See Also:
  • Nested Class Summary

    Nested classes/interfaces inherited from class org.springframework.security.authentication.AbstractAuthenticationToken

    org.springframework.security.authentication.AbstractAuthenticationToken.AbstractAuthenticationBuilder<B extends org.springframework.security.authentication.AbstractAuthenticationToken.AbstractAuthenticationBuilder<B>>

    Nested classes/interfaces inherited from interface org.springframework.security.core.Authentication

    org.springframework.security.core.Authentication.Builder<B extends org.springframework.security.core.Authentication.Builder<B>>
  • Constructor Summary

    Constructors
    Modifier
    Constructor
    Description
    protected
    OAuth2AuthorizationGrantAuthenticationToken(org.springframework.security.oauth2.core.AuthorizationGrantType authorizationGrantType, org.springframework.security.core.Authentication clientPrincipal, Map<String,Object> additionalParameters)
    Sub-class constructor.
  • Method Summary

    Modifier and Type
    Method
    Description
    Returns the additional parameters.
     
    org.springframework.security.oauth2.core.AuthorizationGrantType
    Returns the authorization grant type.
     

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

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

    Methods inherited from class java.lang.Object

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

    Methods inherited from interface org.springframework.security.core.Authentication

    toBuilder

    Methods inherited from interface java.security.Principal

    implies
  • Constructor Details

    • OAuth2AuthorizationGrantAuthenticationToken

      protected OAuth2AuthorizationGrantAuthenticationToken(org.springframework.security.oauth2.core.AuthorizationGrantType authorizationGrantType, org.springframework.security.core.Authentication clientPrincipal, @Nullable Map<String,Object> additionalParameters)
      Sub-class constructor.
      Parameters:
      authorizationGrantType - the authorization grant type
      clientPrincipal - the authenticated client principal
      additionalParameters - the additional parameters
  • Method Details

    • getGrantType

      public org.springframework.security.oauth2.core.AuthorizationGrantType getGrantType()
      Returns the authorization grant type.
      Returns:
      the authorization grant type
    • getPrincipal

      public Object getPrincipal()
    • getCredentials

      public Object getCredentials()
    • getAdditionalParameters

      public Map<String,Object> getAdditionalParameters()
      Returns the additional parameters.
      Returns:
      the additional parameters