Class MaxAgeLookupFunction
- java.lang.Object
-
- net.shibboleth.idp.profile.context.navigate.AbstractRelyingPartyLookupFunction<Duration>
-
- net.shibboleth.idp.plugin.authn.oidc.rp.config.navigate.MaxAgeLookupFunction
-
- All Implemented Interfaces:
Function<ProfileRequestContext,Duration>,ContextDataLookupFunction<ProfileRequestContext,Duration>
public class MaxAgeLookupFunction extends AbstractRelyingPartyLookupFunction<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
Fields Modifier and Type Field Description private Function<ProfileRequestContext,OIDCAuthenticationRequest>authenticationRequestLookupStrategyStrategy used to locate theOIDCAuthenticationRequest.private DurationmaxAgeDefaultDefault max authentication age if none can be found on the profile context.
-
Constructor Summary
Constructors Constructor Description MaxAgeLookupFunction(Duration defaultAge)Constructor.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Durationapply(ProfileRequestContext input)voidsetAuthenticationRequestLookupStrategy(Function<ProfileRequestContext,OIDCAuthenticationRequest> strategy)Set the authentication request lookup strategy to use.-
Methods inherited from class net.shibboleth.idp.profile.context.navigate.AbstractRelyingPartyLookupFunction
getRelyingPartyContextLookupStrategy, setRelyingPartyContextLookupStrategy
-
-
-
-
Field Detail
-
maxAgeDefault
private final Duration maxAgeDefault
Default max authentication age if none can be found on the profile context.
-
authenticationRequestLookupStrategy
@Nonnull private Function<ProfileRequestContext,OIDCAuthenticationRequest> authenticationRequestLookupStrategy
Strategy used to locate theOIDCAuthenticationRequest. Defaults to the outbound message context of the PRC.
-
-
Constructor Detail
-
MaxAgeLookupFunction
public MaxAgeLookupFunction(@ParameterName(name="maxAgeDefault") @Nonnull Duration defaultAge)
Constructor.- Parameters:
defaultAge- the default value to use for maximum authentication age
-
-
Method Detail
-
setAuthenticationRequestLookupStrategy
public void setAuthenticationRequestLookupStrategy(@Nonnull Function<ProfileRequestContext,OIDCAuthenticationRequest> strategy)Set the authentication request lookup strategy to use.- Parameters:
strategy- the strategy
-
apply
@Nonnull public Duration apply(@Nullable ProfileRequestContext input)
-
-