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
Fields Modifier and Type Field Description private Function<ProfileRequestContext,OIDCAuthenticationRequest>authenticationRequestLookupStrategyStrategy used to locate theOIDCAuthenticationRequest.private org.slf4j.LoggerlogClass logger.
-
Constructor Summary
Constructors Constructor Description AuthenticationRequestTimeLookupFunction()Constructor.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Instantapply(ProfileRequestContext input)voidsetAuthenticationRequestLookupStrategy(Function<ProfileRequestContext,OIDCAuthenticationRequest> strategy)Set the strategy used to locate theOIDCAuthenticationRequestto use.
-
-
-
Field Detail
-
log
@Nonnull private final org.slf4j.Logger log
Class logger.
-
authenticationRequestLookupStrategy
@Nonnull private Function<ProfileRequestContext,OIDCAuthenticationRequest> authenticationRequestLookupStrategy
Strategy used to locate theOIDCAuthenticationRequest. Defaults to the outbound message context of the PRC.
-
-
Method Detail
-
setAuthenticationRequestLookupStrategy
public void setAuthenticationRequestLookupStrategy(@Nonnull Function<ProfileRequestContext,OIDCAuthenticationRequest> strategy)Set the strategy used to locate theOIDCAuthenticationRequestto use.- Parameters:
strategy- lookup strategy
-
apply
@Nullable public Instant apply(@Nullable ProfileRequestContext input)
- Specified by:
applyin interfaceFunction<ProfileRequestContext,Instant>
-
-