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 asacr_values, ornullto send none.maxAge- maximum age, in seconds, of the authentication to send asmax_age, ornullto 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
FieldsModifier and TypeFieldDescriptionstatic final PatternOne authentication context class referenceGET /bff/loginaccepts, as in the contract's pattern.private final StringThe field for theacrValuesrecord component.static final intLongestacrValuesthatGET /bff/loginaccepts, as in the contract.static final longLargestmaxAge, in seconds, thatGET /bff/loginaccepts (one day, as in the contract).private final LongThe field for themaxAgerecord component.private static final longSerialization version. -
Constructor Summary
ConstructorsConstructorDescriptionStepUpLoginParameters(String acrValues, Long maxAge) Creates an instance of aStepUpLoginParametersrecord class. -
Method Summary
Modifier and TypeMethodDescriptionReturns the value of theacrValuesrecord component.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.maxAge()Returns the value of themaxAgerecord component.final StringtoString()Returns a string representation of this record class.
-
Field Details
-
acrValues
The field for theacrValuesrecord component. -
maxAge
The field for themaxAgerecord component. -
MAX_AGE_LIMIT_SECONDS
public static final long MAX_AGE_LIMIT_SECONDSLargestmaxAge, in seconds, thatGET /bff/loginaccepts (one day, as in the contract).- See Also:
-
MAX_ACR_VALUES_LENGTH
public static final int MAX_ACR_VALUES_LENGTHLongestacrValuesthatGET /bff/loginaccepts, as in the contract.- See Also:
-
ACR_VALUE
One authentication context class referenceGET /bff/loginaccepts, as in the contract's pattern. -
serialVersionUID
private static final long serialVersionUIDSerialization version.- See Also:
-
-
Constructor Details
-
Method Details
-
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. -
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. -
equals
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 withObjects::equals(Object,Object). -
acrValues
Returns the value of theacrValuesrecord component.- Returns:
- the value of the
acrValuesrecord component
-
maxAge
Returns the value of themaxAgerecord component.- Returns:
- the value of the
maxAgerecord component
-