Class PopulateDuoAuthenticationContext.DefaultMaxAuthenticationAgeLookupStrategy
java.lang.Object
net.shibboleth.idp.plugin.authn.duo.impl.PopulateDuoAuthenticationContext.DefaultMaxAuthenticationAgeLookupStrategy
- All Implemented Interfaces:
Function<ProfileRequestContext,Duration>
- Enclosing class:
- PopulateDuoAuthenticationContext
public static class PopulateDuoAuthenticationContext.DefaultMaxAuthenticationAgeLookupStrategy
extends Object
implements Function<ProfileRequestContext,Duration>
Default strategy that determines the effective maximum authentication age requirement.
The following rules apply:
- If the integration specifies a maximum authentication age, that value is used.
- Otherwise, if force authentication has been requested, the user is
required to re-authenticate by setting
max_age=0. - Otherwise, if a maximum authentication age is present on the authentication context, that value is used.
- Otherwise, no maximum authentication age requirement is applied.
-
Field Details
-
log
@Nonnull private final org.slf4j.Logger logClass logger.
-
-
Constructor Details
-
DefaultMaxAuthenticationAgeLookupStrategy
public DefaultMaxAuthenticationAgeLookupStrategy()
-
-
Method Details
-
apply
- Specified by:
applyin interfaceFunction<ProfileRequestContext,Duration>
-