Class ExtractTOTPFromFormRequest

java.lang.Object
net.shibboleth.shared.component.AbstractInitializableComponent
org.opensaml.profile.action.AbstractProfileAction
org.opensaml.profile.action.AbstractConditionalProfileAction
net.shibboleth.idp.profile.AbstractProfileAction
net.shibboleth.idp.authn.AbstractAuthenticationAction
net.shibboleth.idp.plugin.authn.totp.impl.AbstractTOTPExtractionAction
net.shibboleth.idp.plugin.authn.totp.impl.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