Class DocumentsStepUpRequiredException
java.lang.Object
java.lang.Throwable
java.lang.Exception
java.lang.RuntimeException
com.irurueta.authserver.bff.domain.documents.DocumentsStepUpRequiredException
- All Implemented Interfaces:
Serializable
The resource server refused the operation because the access token of the session does not prove a strong or
recent enough authentication (RFC 9470 step-up). The user has to sign in again asking the authorization server for
the authentication context classes and maximum age the resource server named.
- See Also:
-
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionDocumentsStepUpRequiredException(String message, String acrValues, Duration maxAge, Throwable cause) Creates the exception. -
Method Summary
Methods inherited from class java.lang.Throwable
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
-
Field Details
-
serialVersionUID
private static final long serialVersionUIDSerialization version.- See Also:
-
acrValues
Space-separated authentication context class references asked for, ornullwhen none was named. -
maxAge
Maximum age of the authentication accepted, ornullwhen none was named.
-
-
Constructor Details
-
DocumentsStepUpRequiredException
public DocumentsStepUpRequiredException(String message, String acrValues, Duration maxAge, Throwable cause) Creates the exception.- Parameters:
message- description of the failure; it never carries a token.acrValues- space-separated authentication context class references asked for, ornullwhen the resource server named none.maxAge- maximum age of the authentication accepted, ornullwhen the resource server named none.cause- the failure that was reported, ornullwhen there is none.
-
-
Method Details
-
getAcrValues
Returns the authentication context class references the resource server asked for.- Returns:
- the space-separated values, or empty when the resource server named none.
-
getMaxAge
Returns the maximum age of the authentication the resource server accepts.- Returns:
- the maximum age, or empty when the resource server named none.
-