Class NonceFromAuthenticationRequestStateLookupStrategy
java.lang.Object
net.shibboleth.sp.oidc.profile.context.navigate.NonceFromAuthenticationRequestStateLookupStrategy
- All Implemented Interfaces:
BiFunction<org.opensaml.profile.context.ProfileRequestContext,com.nimbusds.jwt.JWTClaimsSet, String>
@ThreadSafe
public final class NonceFromAuthenticationRequestStateLookupStrategy
extends Object
implements BiFunction<org.opensaml.profile.context.ProfileRequestContext,com.nimbusds.jwt.JWTClaimsSet,String>
Lookup strategy that finds the id_token nonce from the
AuthenticationRequestStateData.
Returns null if not found.-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final Function<org.opensaml.profile.context.ProfileRequestContext,AuthenticationRequestStateData> The strategy used to lookup theAuthenticationRequestStateData. -
Constructor Summary
ConstructorsConstructorDescriptionConstructor.NonceFromAuthenticationRequestStateLookupStrategy(Function<org.opensaml.profile.context.ProfileRequestContext, AuthenticationRequestStateData> strategy) Constructor. -
Method Summary
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface java.util.function.BiFunction
andThen
-
Field Details
-
authenticationStateDataLookupStrategy
@Nonnull private final Function<org.opensaml.profile.context.ProfileRequestContext,AuthenticationRequestStateData> authenticationStateDataLookupStrategyThe strategy used to lookup theAuthenticationRequestStateData.
-
-
Constructor Details
-
NonceFromAuthenticationRequestStateLookupStrategy
public NonceFromAuthenticationRequestStateLookupStrategy(@ParameterName(name="authenticationStateDataLookupStrategy") @Nonnull Function<org.opensaml.profile.context.ProfileRequestContext, AuthenticationRequestStateData> strategy) Constructor.- Parameters:
strategy- the lookup strategy to use
-
NonceFromAuthenticationRequestStateLookupStrategy
public NonceFromAuthenticationRequestStateLookupStrategy()Constructor.
-
-
Method Details
-
apply
@Nullable public String apply(@Nullable org.opensaml.profile.context.ProfileRequestContext context, @Nullable com.nimbusds.jwt.JWTClaimsSet claims) - Specified by:
applyin interfaceBiFunction<org.opensaml.profile.context.ProfileRequestContext,com.nimbusds.jwt.JWTClaimsSet, String>
-