Class ExtractTOTPFromFormRequest

All Implemented Interfaces:
Component, DestructableComponent, InitializableComponent, ProfileAction, Aware, MessageSource, MessageSourceAware, Action

public class ExtractTOTPFromFormRequest extends AbstractTOTPExtractionAction
An action that derives the TOTP code from a form parameter.
  • Field Details

  • Constructor Details

    • ExtractTOTPFromFormRequest

      public ExtractTOTPFromFormRequest()
      Constructor.
  • Method Details

    • setFieldName

      public void setFieldName(@Nonnull @NotEmpty String field)
      Set the name of the field to examine.
      Parameters:
      field - field name
    • extractCode

      @Nullable protected String extractCode(@Nonnull HttpServletRequest httpRequest)
      Gets the token code from the HTTP request.
      Specified by:
      extractCode in class AbstractTOTPExtractionAction
      Parameters:
      httpRequest - current HTTP request
      Returns:
      the token code, or null