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
FieldsModifier and TypeFieldDescriptionprivate final org.springframework.security.oauth2.core.OAuth2AccessTokenThe access token issued.private final StringThe registered redirect URI the token is sent to.Scopes granted.private static final longSerial version.private final StringState of the request,nullwhen it had none. -
Constructor Summary
ConstructorsConstructorDescriptionLegacyImplicitAccessTokenToken(org.springframework.security.oauth2.core.OAuth2AccessToken accessToken, Set<String> scopes, String redirectUri, String state) Creates the result. -
Method Summary
Modifier and TypeMethodDescriptionorg.springframework.security.oauth2.core.OAuth2AccessTokenReturns 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.getState()Returns the state of the request.Methods inherited from class org.springframework.security.authentication.AbstractAuthenticationToken
equals, eraseCredentials, getAuthorities, getDetails, getName, hashCode, isAuthenticated, setAuthenticated, setDetails, toStringMethods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, waitMethods inherited from interface org.springframework.security.core.Authentication
toBuilder
-
Field Details
-
serialVersionUID
private static final long serialVersionUIDSerial version.- See Also:
-
accessToken
private final transient org.springframework.security.oauth2.core.OAuth2AccessToken accessTokenThe access token issued. -
scopes
Scopes granted. -
redirectUri
The registered redirect URI the token is sent to. -
state
State of the request,nullwhen 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 benull.
-
-
Method Details
-
getAccessToken
public org.springframework.security.oauth2.core.OAuth2AccessToken getAccessToken()Returns the access token issued.- Returns:
- the token.
-
getScopes
Returns the scopes granted.- Returns:
- the scopes.
-
getRedirectUri
Returns the redirect URI the token is sent to.- Returns:
- the redirect URI.
-
getState
Returns the state of the request.- Returns:
- the state,
nullwhen the request had none.
-
getCredentials
Returns the credentials, which a result has none of.- Returns:
- an empty string.
-
getPrincipal
Returns the principal of the result: the token value is deliberately not it, so it is never logged.- Returns:
- the redirect URI.
-