Class LegacyImplicitAccessTokenToken

java.lang.Object
org.springframework.security.authentication.AbstractAuthenticationToken
com.irurueta.authserver.authorization.api.web.implicit.LegacyImplicitAccessTokenToken
All Implemented Interfaces:
Serializable, Principal, org.springframework.security.core.Authentication, org.springframework.security.core.CredentialsContainer

public class LegacyImplicitAccessTokenToken extends org.springframework.security.authentication.AbstractAuthenticationToken
The result of a granted legacy implicit request: the access token and what the response needs to send it to the client in the fragment of its redirect URI.
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>>
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    private final org.springframework.security.oauth2.core.OAuth2AccessToken
    The access token issued.
    private final String
    The registered redirect URI the token is sent to.
    private final Set<String>
    Scopes granted.
    private static final long
    Serial version.
    private final String
    State of the request, null when it had none.
  • Constructor Summary

    Constructors
    Constructor
    Description
    LegacyImplicitAccessTokenToken(org.springframework.security.oauth2.core.OAuth2AccessToken accessToken, Set<String> scopes, String redirectUri, String state)
    Creates the result.
  • Method Summary

    Modifier and Type
    Method
    Description
    org.springframework.security.oauth2.core.OAuth2AccessToken
    Returns the access token issued.
    Returns the credentials, which a result has none of.
    Returns the principal of the result: the token value is deliberately not it, so it is never logged.
    Returns the redirect URI the token is sent to.
    Returns the scopes granted.
    Returns the state of the request.

    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
  • Field Details

    • serialVersionUID

      private static final long serialVersionUID
      Serial version.
      See Also:
    • accessToken

      private final transient org.springframework.security.oauth2.core.OAuth2AccessToken accessToken
      The access token issued.
    • scopes

      private final Set<String> scopes
      Scopes granted.
    • redirectUri

      private final String redirectUri
      The registered redirect URI the token is sent to.
    • state

      private final String state
      State of the request, null when it had none.
  • Constructor Details

    • LegacyImplicitAccessTokenToken

      public LegacyImplicitAccessTokenToken(org.springframework.security.oauth2.core.OAuth2AccessToken accessToken, Set<String> scopes, String redirectUri, String state)
      Creates the result.
      Parameters:
      accessToken - the access token issued.
      scopes - scopes granted.
      redirectUri - the registered redirect URI.
      state - state of the request, may be null.
  • Method Details

    • getAccessToken

      public org.springframework.security.oauth2.core.OAuth2AccessToken getAccessToken()
      Returns the access token issued.
      Returns:
      the token.
    • getScopes

      public Set<String> getScopes()
      Returns the scopes granted.
      Returns:
      the scopes.
    • getRedirectUri

      public String getRedirectUri()
      Returns the redirect URI the token is sent to.
      Returns:
      the redirect URI.
    • getState

      public String getState()
      Returns the state of the request.
      Returns:
      the state, null when the request had none.
    • getCredentials

      public Object getCredentials()
      Returns the credentials, which a result has none of.
      Returns:
      an empty string.
    • getPrincipal

      public Object getPrincipal()
      Returns the principal of the result: the token value is deliberately not it, so it is never logged.
      Returns:
      the redirect URI.