All Implemented Interfaces:
Component, DestructableComponent, InitializableComponent, MessageHandler

public class AddStateHandler extends AbstractOIDCAuthenticationRequestMessageHandler
Add state to the authentication request URL and the request object claims (if present). By default this is generated by concatenating the Hex value of the spring webflow execution key with a secure random 32 character nonce.
  • Field Details

    • STATE_CLAIM

      @Nonnull private static final String STATE_CLAIM
      The 'state' claim name.
      See Also:
    • log

      @Nonnull private final org.slf4j.Logger log
      Logger.
    • stateGenerationStrategy

      @Nonnull private Function<MessageContext,String> stateGenerationStrategy
      Function to create a suitable 'state' to add to the authentication request.
  • Constructor Details

    • AddStateHandler

      public AddStateHandler()
      Constructor.
  • Method Details