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.
  • Field Details

    • 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 Details

    • OIDCAuthnContext

      public OIDCAuthnContext(@Nonnull ProfileAction action, @Nonnull Function<String,MessageDecoder> factory)
      Constructor.
      Parameters:
      action - message-encoding profile action
      factory - the message descoder factory
  • Method Details

    • getEncodeMessageAction

      @Nonnull public ProfileAction getEncodeMessageAction()
      Get the message-encoding profile action.
      Returns:
      profile action
    • getOutboundMessageHandler

      @Nullable public MessageHandler getOutboundMessageHandler()
      Get the outbound MessageHandler to run prior to encoding.
      Returns:
      the outbound MessageHandler
    • setOutboundMessageHandler

      @Nonnull public OIDCAuthnContext setOutboundMessageHandler(@Nullable MessageHandler handler)
      Set the outbound MessageHandler to run prior to encoding.
      Parameters:
      handler - outbound MessageHandler to set
      Returns:
      this context
    • getMessageDecoderFactory

      @Nonnull public Function<String,MessageDecoder> getMessageDecoderFactory()
      Get the factory function to obtain message decoders.
      Returns:
      factory function