Class PayloadFromRequestObjectLookupFunction
java.lang.Object
net.shibboleth.sp.oidc.messaging.context.navigate.PayloadFromRequestObjectLookupFunction
- All Implemented Interfaces:
Function<org.opensaml.messaging.context.MessageContext,com.nimbusds.jose.Payload>
public class PayloadFromRequestObjectLookupFunction
extends Object
implements Function<org.opensaml.messaging.context.MessageContext,com.nimbusds.jose.Payload>
Extract the
Payload from the Request Object inside the OIDCAuthenticationRequest.
The Payload must either be signed, or plain. The payload will not be available if still encrypted.-
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 TypeMethodDescriptioncom.nimbusds.jose.Payloadapply(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.
-
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
-
PayloadFromRequestObjectLookupFunction
public PayloadFromRequestObjectLookupFunction()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
-
apply
@Nullable public com.nimbusds.jose.Payload apply(@Nullable org.opensaml.messaging.context.MessageContext messageContext)
-