Class FormCredentialsExtractor

java.lang.Object
io.inverno.mod.security.http.form.FormCredentialsExtractor
All Implemented Interfaces:
CredentialsExtractor<LoginCredentials>

public class FormCredentialsExtractor extends Object implements CredentialsExtractor<LoginCredentials>

A credentials extractor that extracts login credentials provided by a user in a form (application/x-www-form-urlencoded) submitted in an HTTP POST request.

Since:
1.5
Author:
Jeremy Kuhn
  • Field Details

    • DEFAULT_PARAMETER_USERNAME

      public static final String DEFAULT_PARAMETER_USERNAME
      The default username parameter name.
      See Also:
    • DEFAULT_PARAMETER_PASSWORD

      public static final String DEFAULT_PARAMETER_PASSWORD
      The default password parameter name.
      See Also:
  • Constructor Details

    • FormCredentialsExtractor

      public FormCredentialsExtractor()

      Creates a form credentials extractor with default username and password parameter names.

    • FormCredentialsExtractor

      public FormCredentialsExtractor(String usernameParameter, String passwordParameter)

      Creates a form credentials extractor with specified username and password parameter names.

      Parameters:
      usernameParameter - the username parameter name
      passwordParameter - the password parameter name
  • Method Details