Class OIDCAuthnContext
- java.lang.Object
-
- org.opensaml.messaging.context.BaseContext
-
- net.shibboleth.idp.plugin.authn.oidc.rp.context.OIDCAuthnContext
-
- All Implemented Interfaces:
Iterable<BaseContext>
public class OIDCAuthnContext extends BaseContext
Manages state during proxied OIDC authentication via a Spring Controller.
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class org.opensaml.messaging.context.BaseContext
BaseContext.ContextSetNoRemoveIteratorDecorator
-
-
Field Summary
Fields Modifier and Type Field Description private Function<String,MessageDecoder>decoderFactoryThe function to use to obtain a decoder.private ProfileActionencodeMessageActionProfile action to execute to produce outbound message response.private MessageHandleroutboundMessageHandlerOutbound message handler to run prior to encoding.
-
Constructor Summary
Constructors Constructor Description OIDCAuthnContext(ProfileAction action, Function<String,MessageDecoder> factory)Constructor.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description ProfileActiongetEncodeMessageAction()Get the message-encoding profile action.Function<String,MessageDecoder>getMessageDecoderFactory()Get the factory function to obtain message decoders.MessageHandlergetOutboundMessageHandler()Get the outboundMessageHandlerto run prior to encoding.OIDCAuthnContextsetOutboundMessageHandler(MessageHandler handler)Set the outboundMessageHandlerto run prior to encoding.-
Methods inherited from class org.opensaml.messaging.context.BaseContext
addSubcontext, addSubcontext, clearSubcontexts, containsSubcontext, createSubcontext, getParent, getSubcontext, getSubcontext, getSubcontext, getSubcontext, iterator, removeSubcontext, removeSubcontext, setParent
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface java.lang.Iterable
forEach, spliterator
-
-
-
-
Field Detail
-
outboundMessageHandler
@Nullable private MessageHandler outboundMessageHandler
Outbound message handler to run prior to encoding.
-
encodeMessageAction
@Nonnull private final ProfileAction encodeMessageAction
Profile action to execute to produce outbound message response.
-
decoderFactory
@Nonnull private final Function<String,MessageDecoder> decoderFactory
The function to use to obtain a decoder.
-
-
Constructor Detail
-
OIDCAuthnContext
public OIDCAuthnContext(@Nonnull ProfileAction action, @Nonnull Function<String,MessageDecoder> factory)Constructor.- Parameters:
action- message-encoding profile actionfactory- the message descoder factory
-
-
Method Detail
-
getEncodeMessageAction
@Nonnull public ProfileAction getEncodeMessageAction()
Get the message-encoding profile action.- Returns:
- profile action
-
getOutboundMessageHandler
@Nullable public MessageHandler getOutboundMessageHandler()
Get the outboundMessageHandlerto run prior to encoding.- Returns:
- the outbound
MessageHandler
-
setOutboundMessageHandler
@Nonnull public OIDCAuthnContext setOutboundMessageHandler(@Nullable MessageHandler handler)
Set the outboundMessageHandlerto run prior to encoding.- Parameters:
handler- outboundMessageHandlerto set- Returns:
- this context
-
getMessageDecoderFactory
@Nonnull public Function<String,MessageDecoder> getMessageDecoderFactory()
Get the factory function to obtain message decoders.- Returns:
- factory function
-
-