Class AuthenticationRequestTimeLookupFunction
java.lang.Object
net.shibboleth.idp.plugin.authn.oidc.rp.context.navigate.AuthenticationRequestTimeLookupFunction
- All Implemented Interfaces:
Function<ProfileRequestContext,Instant>
public class AuthenticationRequestTimeLookupFunction
extends Object
implements Function<ProfileRequestContext,Instant>
Lookup function that returns the time at which the RP sent the authentication request, as taken from the
authentication request object.
-
Field Summary
FieldsModifier and TypeFieldDescriptionStrategy used to locate theOIDCAuthenticationRequest.private DurationA clock skew to apply to the authentication request time. -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionapply(ProfileRequestContext input) voidsetAuthenticationRequestLookupStrategy(Function<ProfileRequestContext, OIDCAuthenticationRequest> strategy) Set the strategy used to locate theOIDCAuthenticationRequestto use.voidsetClockSkew(Duration skew) Set the clock skew.
-
Field Details
-
authenticationRequestLookupStrategy
@Nonnull private Function<ProfileRequestContext,OIDCAuthenticationRequest> authenticationRequestLookupStrategyStrategy used to locate theOIDCAuthenticationRequest. Defaults to the outbound message context of the PRC. -
clockSkew
A clock skew to apply to the authentication request time. This accounts for differences between system clocks by treating the authentication request as if it occurred slightly earlier by the specified skew duration. By default there is no skew.
-
-
Constructor Details
-
AuthenticationRequestTimeLookupFunction
public AuthenticationRequestTimeLookupFunction()Constructor.
-
-
Method Details
-
setClockSkew
Set the clock skew.- Parameters:
skew- clock skew to set
-
setAuthenticationRequestLookupStrategy
public void setAuthenticationRequestLookupStrategy(@Nonnull Function<ProfileRequestContext, OIDCAuthenticationRequest> strategy) Set the strategy used to locate theOIDCAuthenticationRequestto use.- Parameters:
strategy- lookup strategy
-
apply
- Specified by:
applyin interfaceFunction<ProfileRequestContext,Instant>
-