Class SimpleTestDigestAuthenticator

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

public class SimpleTestDigestAuthenticator extends Object implements org.pac4j.core.credentials.authenticator.Authenticator
This class is a simple test authenticator: username and token must not be blank.
Since:
1.9.0
Author:
Mircea Carasel
  • Field Summary

    Fields inherited from interface org.pac4j.core.credentials.authenticator.Authenticator

    ALWAYS_VALIDATE, NEVER_VALIDATE
  • Constructor Summary

    Constructors
    Constructor
    Description
     
  • Method Summary

    Modifier and Type
    Method
    Description
    Optional<org.pac4j.core.credentials.Credentials>
    validate(org.pac4j.core.context.CallContext ctx, org.pac4j.core.credentials.Credentials cred)

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Constructor Details

    • SimpleTestDigestAuthenticator

      public SimpleTestDigestAuthenticator()
  • 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