Class RequestObjectTokenUpdateStrategy
java.lang.Object
net.shibboleth.sp.oidc.messaging.context.navigate.RequestObjectTokenUpdateStrategy
- All Implemented Interfaces:
BiConsumer<com.nimbusds.jwt.JWT,org.opensaml.messaging.context.MessageContext>
public class RequestObjectTokenUpdateStrategy
extends Object
implements BiConsumer<com.nimbusds.jwt.JWT,org.opensaml.messaging.context.MessageContext>
Consumer that adds the
JWT back to the Request Object in the OIDCAuthenticationRequest.-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate Function<org.opensaml.messaging.context.MessageContext,net.shibboleth.oidc.profile.core.OIDCAuthenticationRequest> Strategy used to locate theOIDCAuthenticationRequestto sign.private final org.slf4j.LoggerClass logger. -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidaccept(com.nimbusds.jwt.JWT jwt, org.opensaml.messaging.context.MessageContext messageContext) voidsetAuthenticationRequestLookupStrategy(Function<org.opensaml.messaging.context.MessageContext, net.shibboleth.oidc.profile.core.OIDCAuthenticationRequest> strategy) Set the strategy used to locate theOIDCAuthenticationRequestto use.Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface java.util.function.BiConsumer
andThen
-
Field Details
-
log
@Nonnull private final org.slf4j.Logger logClass logger. -
authenticationRequestLookupStrategy
@Nonnull private Function<org.opensaml.messaging.context.MessageContext,net.shibboleth.oidc.profile.core.OIDCAuthenticationRequest> authenticationRequestLookupStrategyStrategy used to locate theOIDCAuthenticationRequestto sign.
-
-
Constructor Details
-
RequestObjectTokenUpdateStrategy
public RequestObjectTokenUpdateStrategy()Constructor.
-
-
Method Details
-
setAuthenticationRequestLookupStrategy
public void setAuthenticationRequestLookupStrategy(@Nonnull Function<org.opensaml.messaging.context.MessageContext, net.shibboleth.oidc.profile.core.OIDCAuthenticationRequest> strategy) Set the strategy used to locate theOIDCAuthenticationRequestto use.- Parameters:
strategy- lookup strategy
-
accept
public void accept(@Nullable com.nimbusds.jwt.JWT jwt, @Nullable org.opensaml.messaging.context.MessageContext messageContext) - Specified by:
acceptin interfaceBiConsumer<com.nimbusds.jwt.JWT,org.opensaml.messaging.context.MessageContext>
-