Class LegacyImplicitErrorToken
java.lang.Object
org.springframework.security.authentication.AbstractAuthenticationToken
com.irurueta.authserver.authorization.api.web.implicit.LegacyImplicitErrorToken
- All Implemented Interfaces:
Serializable,Principal,org.springframework.security.core.Authentication,org.springframework.security.core.CredentialsContainer
public class LegacyImplicitErrorToken
extends org.springframework.security.authentication.AbstractAuthenticationToken
The result of a legacy implicit request that was refused after its redirect URI had been checked, so the refusal is
sent to the client in the fragment of the redirect URI. It is marked authenticated only so the authorization endpoint
hands it to the response handler instead of continuing the chain.
- 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 StringHuman readable description of the error,nullwhen there is none.private final StringError code.private final StringThe registered redirect URI the error is sent to.private static final longSerial version.private final StringState of the request,nullwhen it had none. -
Constructor Summary
ConstructorsConstructorDescriptionLegacyImplicitErrorToken(String error, String description, String redirectUri, String state) Creates the result. -
Method Summary
Modifier and TypeMethodDescriptionReturns the credentials, which a result has none of.Returns the description of the error.getError()Returns the error code.Returns the principal, which a refusal has none of.Returns the redirect URI the error is sent to.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:
-
error
Error code. -
description
Human readable description of the error,nullwhen there is none. -
redirectUri
The registered redirect URI the error is sent to. -
state
State of the request,nullwhen it had none.
-
-
Constructor Details
-
LegacyImplicitErrorToken
Creates the result.- Parameters:
error- error code.description- description of the error, may benull.redirectUri- the registered redirect URI.state- state of the request, may benull.
-
-
Method Details
-
getError
Returns the error code.- Returns:
- the code.
-
getDescription
Returns the description of the error.- Returns:
- the description,
nullwhen there is none.
-
getRedirectUri
Returns the redirect URI the error 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, which a refusal has none of.- Returns:
- the error code, so the token has a name.
-