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
FieldsModifier and TypeFieldDescriptionprivate final StringIdentifier of the client.private final StringRedirect URI of the request,nullwhen it names none.Scopes requested.private static final longSerial version.private final StringState of the request,nullwhen it has none.private final org.springframework.security.core.AuthenticationThe user the request arrived with, possibly anonymous. -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionReturns 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.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:
-
clientId
Identifier of the client. -
redirectUri
Redirect URI of the request,nullwhen it names none. -
scopes
Scopes requested. -
state
State of the request,nullwhen it has none. -
user
private final transient org.springframework.security.core.Authentication userThe 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 benull.scopes- scopes requested.state- state of the request, may benull.user- the user the request arrived with.
-
-
Method Details
-
getClientId
Returns the identifier of the client.- Returns:
- the client id.
-
getRedirectUri
Returns the redirect URI of the request.- Returns:
- the redirect URI,
nullwhen the request names none.
-
getScopes
Returns the scopes requested.- Returns:
- the scopes, possibly empty.
-
getState
Returns the state of the request.- Returns:
- the state,
nullwhen the request has none.
-
getCredentials
Returns the credentials, which a request has none of.- Returns:
- an empty string.
-
getPrincipal
Returns the principal of the request: the user it arrived with.- Returns:
- the user.
-