Package io.quarkus.oidc.runtime
Record Class StepUpAuthenticationPolicy
java.lang.Object
java.lang.Record
io.quarkus.oidc.runtime.StepUpAuthenticationPolicy
- All Implemented Interfaces:
Consumer<TokenVerificationResult>
record StepUpAuthenticationPolicy(String[] expectedAcrValues, Long maxAge)
extends Record
implements Consumer<TokenVerificationResult>
-
Constructor Summary
ConstructorsConstructorDescriptionStepUpAuthenticationPolicy(String[] expectedAcrValues, Long maxAge) Creates an instance of aStepUpAuthenticationPolicyrecord class.StepUpAuthenticationPolicy(String acrValues, Duration maxAge) -
Method Summary
Modifier and TypeMethodDescriptionvoidfinal booleanIndicates whether some other object is "equal to" this one.String[]Returns the value of theexpectedAcrValuesrecord component.(package private) static StringgetAuthRequirementChallenge(io.vertx.ext.web.RoutingContext context) (package private) static StepUpAuthenticationPolicygetFromRequest(io.quarkus.security.identity.request.TokenAuthenticationRequest request) final inthashCode()Returns a hash code value for this object.(package private) static boolean(package private) static booleanisInsufficientUserAuthException(io.vertx.ext.web.RoutingContext routingContext) (package private) static voidmaxAge()Returns the value of themaxAgerecord component.(package private) voidstoreSelfOnContext(io.vertx.ext.web.RoutingContext routingContext) (package private) static voidthrowAuthenticationFailedException(String exceptionMessage, Set<String> expectedAcrValues) final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
StepUpAuthenticationPolicy
-
StepUpAuthenticationPolicy
Creates an instance of aStepUpAuthenticationPolicyrecord class.- Parameters:
expectedAcrValues- the value for theexpectedAcrValuesrecord componentmaxAge- the value for themaxAgerecord component
-
-
Method Details
-
accept
- Specified by:
acceptin interfaceConsumer<TokenVerificationResult>
-
throwAuthenticationFailedException
-
storeSelfOnContext
void storeSelfOnContext(io.vertx.ext.web.RoutingContext routingContext) -
getFromRequest
static StepUpAuthenticationPolicy getFromRequest(io.quarkus.security.identity.request.TokenAuthenticationRequest request) -
isInsufficientUserAuthException
static boolean isInsufficientUserAuthException(io.vertx.ext.web.RoutingContext routingContext) -
getAuthRequirementChallenge
-
markAsEnabled
static void markAsEnabled() -
isEnabled
static boolean isEnabled() -
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). -
expectedAcrValues
Returns the value of theexpectedAcrValuesrecord component.- Returns:
- the value of the
expectedAcrValuesrecord component
-
maxAge
Returns the value of themaxAgerecord component.- Returns:
- the value of the
maxAgerecord component
-