Record Class StepUpProperties
java.lang.Object
java.lang.Record
com.irurueta.authserver.resourceserver.api.web.security.StepUpProperties
- Record Components:
enabled- whether the policy is enforced; whenfalseevery caller is let through.acrValues- the space-separated authentication context class references the token'sacrclaim must be one of; the step-up challenge advertises the whole list.maxAge- how long ago, at most, the user must have authenticated (auth_timeclaim).
@ConfigurationProperties("resourceserver.step-up")
public record StepUpProperties(boolean enabled, String acrValues, Duration maxAge)
extends Record
Step-up authentication policy (RFC 9470) of the sensitive operations, bound from
resourceserver.step-up.*.-
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionStepUpProperties(boolean enabled, String acrValues, Duration maxAge) Validates the policy. -
Method Summary
Modifier and TypeMethodDescriptionReturns the value of theacrValuesrecord component.booleanenabled()Returns the value of theenabledrecord 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
-
Constructor Details
-
StepUpProperties
public StepUpProperties(@DefaultValue("true") boolean enabled, @DefaultValue("urn:irurueta:acr:mfa") String acrValues, @DefaultValue("PT5M") Duration maxAge) Validates the policy.- Throws:
IllegalArgumentException- ifacrValuesis blank ormaxAgeis not positive.
-
-
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. Reference components are compared withObjects::equals(Object,Object); primitive components are compared with '=='. -
enabled
public boolean enabled()Returns the value of theenabledrecord component.- Returns:
- the value of the
enabledrecord component
-
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
-