Class LegacyImplicitAuthorizationRequestToken

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

public class LegacyImplicitAuthorizationRequestToken extends org.springframework.security.authentication.AbstractAuthenticationToken
An authorization request of the legacy implicit flow (response_type=token), not yet authenticated: the request as the client sent it and the user the request arrived with.
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 String
    Identifier of the client.
    private final String
    Redirect URI of the request, null when it names none.
    private final Set<String>
    Scopes requested.
    private static final long
    Serial version.
    private final String
    State of the request, null when it has none.
    private final org.springframework.security.core.Authentication
    The user the request arrived with, possibly anonymous.
  • Constructor Summary

    Constructors
    Constructor
    Description
    LegacyImplicitAuthorizationRequestToken(String clientId, String redirectUri, Set<String> scopes, String state, org.springframework.security.core.Authentication user)
    Creates the request.
  • Method Summary

    Modifier and Type
    Method
    Description
    Returns the identifier of the client.
    Returns the credentials, which a request has none of.
    Returns the principal of the request: the user it arrived with.
    Returns the redirect URI of the request.
    Returns the scopes requested.
    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:
    • clientId

      private final String clientId
      Identifier of the client.
    • redirectUri

      private final String redirectUri
      Redirect URI of the request, null when it names none.
    • scopes

      private final Set<String> scopes
      Scopes requested.
    • state

      private final String state
      State of the request, null when it has none.
    • user

      private final transient org.springframework.security.core.Authentication user
      The user the request arrived with, possibly anonymous.
  • Constructor Details

    • LegacyImplicitAuthorizationRequestToken

      public LegacyImplicitAuthorizationRequestToken(String clientId, String redirectUri, Set<String> scopes, String state, org.springframework.security.core.Authentication user)
      Creates the request.
      Parameters:
      clientId - identifier of the client.
      redirectUri - redirect URI of the request, may be null.
      scopes - scopes requested.
      state - state of the request, may be null.
      user - the user the request arrived with.
  • Method Details

    • getClientId

      public String getClientId()
      Returns the identifier of the client.
      Returns:
      the client id.
    • getRedirectUri

      public String getRedirectUri()
      Returns the redirect URI of the request.
      Returns:
      the redirect URI, null when the request names none.
    • getScopes

      public Set<String> getScopes()
      Returns the scopes requested.
      Returns:
      the scopes, possibly empty.
    • getState

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

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

      public Object getPrincipal()
      Returns the principal of the request: the user it arrived with.
      Returns:
      the user.