Class AuthenticationRequestTimeLookupFunction
java.lang.Object
net.shibboleth.sp.oidc.profile.context.navigate.AuthenticationRequestTimeLookupFunction
@NotThreadSafe
public class AuthenticationRequestTimeLookupFunction
extends Object
implements Function<org.opensaml.profile.context.ProfileRequestContext,Instant>
Lookup function that returns the time at which the RP sent the authentication request, as taken from the
authentication request state object recovered when the response delivered via the Agent.
If the time can not be found, null is returned.
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionapply(org.opensaml.profile.context.ProfileRequestContext input) voidsetClockSkew(Duration skew) Set the clock skew.voidsetStateDataContextLookupStrategy(Function<org.opensaml.profile.context.ProfileRequestContext, net.shibboleth.sp.context.StateDataContext> strategy) Set the strategy used to locate theStateDataContextto use.
-
Field Details
-
stateDataContextLookupStrategy
@Nonnull private Function<org.opensaml.profile.context.ProfileRequestContext,net.shibboleth.sp.context.StateDataContext> stateDataContextLookupStrategyStrategy used to locate theStateDataContext. -
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
-
setStateDataContextLookupStrategy
public void setStateDataContextLookupStrategy(@Nonnull Function<org.opensaml.profile.context.ProfileRequestContext, net.shibboleth.sp.context.StateDataContext> strategy) Set the strategy used to locate theStateDataContextto use.- Parameters:
strategy- lookup strategy
-
apply
-