Class AbstractOIDCAuthenticationRequestMessageHandler
- java.lang.Object
-
- net.shibboleth.utilities.java.support.component.AbstractInitializableComponent
-
- org.opensaml.messaging.handler.AbstractMessageHandler
-
- net.shibboleth.idp.plugin.authn.oidc.rp.messaging.impl.AbstractOIDCAuthenticationRequestMessageHandler
-
- All Implemented Interfaces:
Component,DestructableComponent,InitializableComponent,MessageHandler
- Direct Known Subclasses:
AddStateHandler,BuildPlainRequestObjectJWT,SetAuthenticationRequestTimeHandler
public abstract class AbstractOIDCAuthenticationRequestMessageHandler extends AbstractMessageHandler
An abstract message handler that does *not* run inside anWebFlowMessageHandlerAdaptor. Makes available theOIDCAuthenticationRequest.
-
-
Field Summary
Fields Modifier and Type Field Description private Function<MessageContext,OIDCAuthenticationRequest>authenticationRequestLookupStrategyStrategy used to locate theOIDCAuthenticationRequest.private OIDCAuthenticationRequestauthnRequestThe stashedOIDCAuthenticationRequest.private org.slf4j.LoggerlogClass logger.private OutboundMessageHandlerContextoutboundMessageContextThe stashedOutboundMessageHandlerContext.private Function<MessageContext,OutboundMessageHandlerContext>outboundMessageHandlerContextLookupStrategyStrategy to locate theOutboundMessageHandlerContext.
-
Constructor Summary
Constructors Modifier Constructor Description protectedAbstractOIDCAuthenticationRequestMessageHandler()Constructor.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected booleandoPreInvoke(MessageContext messageContext)protected OIDCAuthenticationRequestgetAuthenticationRequest()Get the authentication request.protected OutboundMessageHandlerContextgetOutboundMessageContext()Get the outbound message context.voidsetAuthenticationRequestLookupStrategy(Function<MessageContext,OIDCAuthenticationRequest> strategy)Set the strategy used to locate theOIDCAuthenticationRequestto use.voidsetOutboundMessageHandlerContextLookupStrategy(Function<MessageContext,OutboundMessageHandlerContext> strategy)Set the strategy used to locate theOutboundMessageHandlerContext.-
Methods inherited from class org.opensaml.messaging.handler.AbstractMessageHandler
doInvoke, doPostInvoke, doPostInvoke, getActivationCondition, getLogPrefix, invoke, setActivationCondition
-
Methods inherited from class net.shibboleth.utilities.java.support.component.AbstractInitializableComponent
destroy, doDestroy, doInitialize, initialize, isDestroyed, isInitialized
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface net.shibboleth.utilities.java.support.component.InitializableComponent
initialize, isInitialized
-
-
-
-
Field Detail
-
log
@Nonnull private final org.slf4j.Logger log
Class logger.
-
outboundMessageHandlerContextLookupStrategy
@Nonnull private Function<MessageContext,OutboundMessageHandlerContext> outboundMessageHandlerContextLookupStrategy
Strategy to locate theOutboundMessageHandlerContext.
-
authenticationRequestLookupStrategy
@Nonnull private Function<MessageContext,OIDCAuthenticationRequest> authenticationRequestLookupStrategy
Strategy used to locate theOIDCAuthenticationRequest.
-
outboundMessageContext
@Nullable private OutboundMessageHandlerContext outboundMessageContext
The stashedOutboundMessageHandlerContext.
-
authnRequest
@Nullable private OIDCAuthenticationRequest authnRequest
The stashedOIDCAuthenticationRequest.
-
-
Method Detail
-
getOutboundMessageContext
@Nullable protected OutboundMessageHandlerContext getOutboundMessageContext()
Get the outbound message context.- Returns:
- the outbound message context.
-
getAuthenticationRequest
@Nullable protected OIDCAuthenticationRequest getAuthenticationRequest()
Get the authentication request.- Returns:
- the authentication request
-
setAuthenticationRequestLookupStrategy
public void setAuthenticationRequestLookupStrategy(@Nonnull Function<MessageContext,OIDCAuthenticationRequest> strategy)Set the strategy used to locate theOIDCAuthenticationRequestto use.- Parameters:
strategy- lookup strategy
-
setOutboundMessageHandlerContextLookupStrategy
public void setOutboundMessageHandlerContextLookupStrategy(@Nonnull Function<MessageContext,OutboundMessageHandlerContext> strategy)Set the strategy used to locate theOutboundMessageHandlerContext.- Parameters:
strategy- the strategy
-
doPreInvoke
protected boolean doPreInvoke(@Nonnull MessageContext messageContext) throws MessageHandlerException- Overrides:
doPreInvokein classAbstractMessageHandler- Throws:
MessageHandlerException
-
-