Class AbstractOIDCAuthenticationRequestMessageHandler
java.lang.Object
net.shibboleth.shared.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 an
WebFlowMessageHandlerAdaptor. Makes available the
OIDCAuthenticationRequest.-
Field Summary
FieldsModifier and TypeFieldDescriptionStrategy used to locate theOIDCAuthenticationRequest.private OIDCAuthenticationRequestThe stashedOIDCAuthenticationRequest.private final org.slf4j.LoggerClass logger.private OutboundMessageHandlerContextThe stashedOutboundMessageHandlerContext.Strategy to locate theOutboundMessageHandlerContext. -
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedConstructor. -
Method Summary
Modifier and TypeMethodDescriptionprotected booleandoPreInvoke(MessageContext messageContext) protected OIDCAuthenticationRequestGet the authentication request.protected OutboundMessageHandlerContextGet the outbound message context.voidSet 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, isPreInvokeCalled, setActivationConditionMethods inherited from class net.shibboleth.shared.component.AbstractInitializableComponent
checkComponentActive, checkSetterPreconditions, destroy, doDestroy, doInitialize, ifDestroyedThrowDestroyedComponentException, ifInitializedThrowUnmodifiabledComponentException, ifNotInitializedThrowUninitializedComponentException, initialize, isDestroyed, isInitializedMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface net.shibboleth.shared.component.InitializableComponent
initialize, isInitialized
-
Field Details
-
log
@Nonnull private final org.slf4j.Logger logClass logger. -
outboundMessageHandlerContextLookupStrategy
@Nonnull private Function<MessageContext,OutboundMessageHandlerContext> outboundMessageHandlerContextLookupStrategyStrategy to locate theOutboundMessageHandlerContext. -
authenticationRequestLookupStrategy
@Nonnull private Function<MessageContext,OIDCAuthenticationRequest> authenticationRequestLookupStrategyStrategy used to locate theOIDCAuthenticationRequest. -
outboundMessageContext
The stashedOutboundMessageHandlerContext. -
authnRequest
The stashedOIDCAuthenticationRequest.
-
-
Constructor Details
-
AbstractOIDCAuthenticationRequestMessageHandler
protected AbstractOIDCAuthenticationRequestMessageHandler()Constructor.
-
-
Method Details
-
getOutboundMessageContext
Get the outbound message context.- Returns:
- the outbound message context.
-
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
-