Class SimpleTestUsernamePasswordAuthenticator

java.lang.Object
org.pac4j.http.credentials.authenticator.test.SimpleTestUsernamePasswordAuthenticator
All Implemented Interfaces:
org.pac4j.core.credentials.authenticator.Authenticator

public class SimpleTestUsernamePasswordAuthenticator extends Object implements org.pac4j.core.credentials.authenticator.Authenticator
This class is a simple test authenticator: password must match username.
Since:
1.4.0
Author:
Jerome Leleu
  • Constructor Details

    • SimpleTestUsernamePasswordAuthenticator

      public SimpleTestUsernamePasswordAuthenticator()
  • Method Details

    • validate

      public Optional<org.pac4j.core.credentials.Credentials> validate(org.pac4j.core.context.CallContext ctx, org.pac4j.core.credentials.Credentials cred)
      Specified by:
      validate in interface org.pac4j.core.credentials.authenticator.Authenticator