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

public class DocumentsStepUpRequiredException extends RuntimeException
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 Details

    • serialVersionUID

      private static final long serialVersionUID
      Serialization version.
      See Also:
    • acrValues

      private final String acrValues
      Space-separated authentication context class references asked for, or null when none was named.
    • maxAge

      private final Duration maxAge
      Maximum age of the authentication accepted, or null when 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, or null when the resource server named none.
      maxAge - maximum age of the authentication accepted, or null when the resource server named none.
      cause - the failure that was reported, or null when there is none.
  • Method Details

    • getAcrValues

      public Optional<String> 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

      public Optional<Duration> getMaxAge()
      Returns the maximum age of the authentication the resource server accepts.
      Returns:
      the maximum age, or empty when the resource server named none.