Class AuthenticationRequestNonceClaimLookupStrategy
java.lang.Object
net.shibboleth.idp.plugin.authn.oidc.rp.security.impl.AuthenticationRequestNonceClaimLookupStrategy
- All Implemented Interfaces:
BiFunction<ProfileRequestContext,com.nimbusds.jwt.JWTClaimsSet, String>
@ThreadSafe
public final class AuthenticationRequestNonceClaimLookupStrategy
extends Object
implements BiFunction<ProfileRequestContext,com.nimbusds.jwt.JWTClaimsSet,String>
Lookup strategy that finds the nonce from the
OIDCAuthenticationRequest. Returns null if not found.-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final Function<ProfileRequestContext,OIDCAuthenticationRequest> The strategy used to lookup the authentication request. -
Constructor Summary
ConstructorsConstructorDescriptionConstructor.AuthenticationRequestNonceClaimLookupStrategy(Function<ProfileRequestContext, OIDCAuthenticationRequest> strategy) Constructor. -
Method Summary
Modifier and TypeMethodDescriptionapply(ProfileRequestContext context, com.nimbusds.jwt.JWTClaimsSet claims) 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
-
authenticationRequestLookupStrategy
@Nonnull private final Function<ProfileRequestContext,OIDCAuthenticationRequest> authenticationRequestLookupStrategyThe strategy used to lookup the authentication request.
-
-
Constructor Details
-
AuthenticationRequestNonceClaimLookupStrategy
public AuthenticationRequestNonceClaimLookupStrategy(@Nonnull Function<ProfileRequestContext, OIDCAuthenticationRequest> strategy) Constructor.- Parameters:
strategy- the lookup strategy to use
-
AuthenticationRequestNonceClaimLookupStrategy
public AuthenticationRequestNonceClaimLookupStrategy()Constructor.
-
-
Method Details
-
apply
@Nullable public String apply(@Nullable ProfileRequestContext context, @Nullable com.nimbusds.jwt.JWTClaimsSet claims) - Specified by:
applyin interfaceBiFunction<ProfileRequestContext,com.nimbusds.jwt.JWTClaimsSet, String>
-