Record Class StepUpLoginParameters

java.lang.Object
java.lang.Record
com.irurueta.authserver.bff.api.web.login.StepUpLoginParameters
Record Components:
acrValues - space-separated authentication context class references to send as acr_values, or null to send none.
maxAge - maximum age, in seconds, of the authentication to send as max_age, or null to send none.
All Implemented Interfaces:
Serializable

public record StepUpLoginParameters(String acrValues, Long maxAge) extends Record implements Serializable
Step-up values of a login (RFC 9470), kept in the session by BffLoginController until StepUpAuthorizationRequestResolver adds them to the authorization request. It is serializable because the session is stored by Spring Session JDBC.
See Also:
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    static final Pattern
    One authentication context class reference GET /bff/login accepts, as in the contract's pattern.
    private final String
    The field for the acrValues record component.
    static final int
    Longest acrValues that GET /bff/login accepts, as in the contract.
    static final long
    Largest maxAge, in seconds, that GET /bff/login accepts (one day, as in the contract).
    private final Long
    The field for the maxAge record component.
    private static final long
    Serialization version.
  • Constructor Summary

    Constructors
    Constructor
    Description
    StepUpLoginParameters(String acrValues, Long maxAge)
    Creates an instance of a StepUpLoginParameters record class.
  • Method Summary

    Modifier and Type
    Method
    Description
    Returns the value of the acrValues record component.
    final boolean
    Indicates whether some other object is "equal to" this one.
    final int
    Returns a hash code value for this object.
    Returns the value of the maxAge record component.
    final String
    Returns a string representation of this record class.

    Methods inherited from class java.lang.Object

    clone, finalize, getClass, notify, notifyAll, wait, wait, wait
  • Field Details

    • acrValues

      private final String acrValues
      The field for the acrValues record component.
    • maxAge

      private final Long maxAge
      The field for the maxAge record component.
    • MAX_AGE_LIMIT_SECONDS

      public static final long MAX_AGE_LIMIT_SECONDS
      Largest maxAge, in seconds, that GET /bff/login accepts (one day, as in the contract).
      See Also:
    • MAX_ACR_VALUES_LENGTH

      public static final int MAX_ACR_VALUES_LENGTH
      Longest acrValues that GET /bff/login accepts, as in the contract.
      See Also:
    • ACR_VALUE

      public static final Pattern ACR_VALUE
      One authentication context class reference GET /bff/login accepts, as in the contract's pattern.
    • serialVersionUID

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

    • StepUpLoginParameters

      public StepUpLoginParameters(String acrValues, Long maxAge)
      Creates an instance of a StepUpLoginParameters record class.
      Parameters:
      acrValues - the value for the acrValues record component
      maxAge - the value for the maxAge record component
  • Method Details

    • toString

      public final String toString()
      Returns a string representation of this record class. The representation contains the name of the class, followed by the name and value of each of the record components.
      Specified by:
      toString in class Record
      Returns:
      a string representation of this object
    • hashCode

      public final int hashCode()
      Returns a hash code value for this object. The value is derived from the hash code of each of the record components.
      Specified by:
      hashCode in class Record
      Returns:
      a hash code value for this object
    • equals

      public final boolean equals(Object o)
      Indicates whether some other object is "equal to" this one. The objects are equal if the other object is of the same class and if all the record components are equal. All components in this record class are compared with Objects::equals(Object,Object).
      Specified by:
      equals in class Record
      Parameters:
      o - the object with which to compare
      Returns:
      true if this object is the same as the o argument; false otherwise.
    • acrValues

      public String acrValues()
      Returns the value of the acrValues record component.
      Returns:
      the value of the acrValues record component
    • maxAge

      public Long maxAge()
      Returns the value of the maxAge record component.
      Returns:
      the value of the maxAge record component