Class MaxAgeLookupFunction
java.lang.Object
net.shibboleth.profile.context.navigate.AbstractRelyingPartyLookupFunction<Duration>
net.shibboleth.oidc.security.jwt.claims.impl.MaxAgeLookupFunction
- All Implemented Interfaces:
Function<ProfileRequestContext,,Duration> ContextDataLookupFunction<ProfileRequestContext,Duration>
Locate the maximum authentication age from the authentication request (first) or profile configuration (second).
Returning a default value if neither are found.
-
Field Summary
FieldsModifier and TypeFieldDescriptionStrategy used to locate theOIDCAuthenticationRequest.private final DurationDefault max authentication age if none can be found on the profile context. -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionapply(ProfileRequestContext input) voidsetAuthenticationRequestLookupStrategy(Function<ProfileRequestContext, OIDCAuthenticationRequest> strategy) Set the authentication request lookup strategy to use.Methods inherited from class net.shibboleth.profile.context.navigate.AbstractRelyingPartyLookupFunction
getRelyingPartyContext, getRelyingPartyContextLookupStrategy, setRelyingPartyContextLookupStrategy
-
Field Details
-
maxAgeDefault
Default max authentication age if none can be found on the profile context. -
authenticationRequestLookupStrategy
@Nonnull private Function<ProfileRequestContext,OIDCAuthenticationRequest> authenticationRequestLookupStrategyStrategy used to locate theOIDCAuthenticationRequest. Defaults to the outbound message context of the PRC.
-
-
Constructor Details
-
MaxAgeLookupFunction
Constructor.- Parameters:
defaultAge- the default value to use for maximum authentication age
-
-
Method Details
-
setAuthenticationRequestLookupStrategy
public void setAuthenticationRequestLookupStrategy(@Nonnull Function<ProfileRequestContext, OIDCAuthenticationRequest> strategy) Set the authentication request lookup strategy to use.- Parameters:
strategy- the strategy
-
apply
-