Class ReauthenticationRequiredException
java.lang.Object
java.lang.Throwable
java.lang.Exception
java.lang.RuntimeException
org.springframework.security.core.AuthenticationException
org.springframework.security.oauth2.core.OAuth2AuthenticationException
com.irurueta.authserver.authorization.api.web.mfa.ReauthenticationRequiredException
- All Implemented Interfaces:
Serializable
public class ReauthenticationRequiredException
extends org.springframework.security.oauth2.core.OAuth2AuthenticationException
Raised when an authorization request asks (through
max_age) for a more recent authentication than the
session has. It is not a failure to report to the client: SecondFactorErrorResponseHandler sends the user
through a new sign-in, after ReauthenticationEntryPoint discards the stale authentication.- See Also:
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final StringError code of the exception.private static final longSerial version. -
Constructor Summary
Constructors -
Method Summary
Methods inherited from class org.springframework.security.oauth2.core.OAuth2AuthenticationException
getErrorMethods inherited from class org.springframework.security.core.AuthenticationException
getAuthenticationRequest, setAuthenticationRequestMethods inherited from class java.lang.Throwable
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
-
Field Details
-
ERROR_CODE
Error code of the exception.- See Also:
-
serialVersionUID
private static final long serialVersionUIDSerial version.- See Also:
-
-
Constructor Details
-
ReauthenticationRequiredException
public ReauthenticationRequiredException()Creates the exception.
-