Class SimpleTestTokenAuthenticator
java.lang.Object
org.pac4j.http.credentials.authenticator.test.SimpleTestTokenAuthenticator
- All Implemented Interfaces:
org.pac4j.core.credentials.authenticator.Authenticator
public class SimpleTestTokenAuthenticator
extends Object
implements org.pac4j.core.credentials.authenticator.Authenticator
This class is a simple test authenticator: token must not be blank.
- Since:
- 1.8.0
- Author:
- Jerome Leleu
-
Field Summary
Fields inherited from interface org.pac4j.core.credentials.authenticator.Authenticator
ALWAYS_VALIDATE, NEVER_VALIDATE
-
Constructor Summary
Constructors -
Method Summary
-
Constructor Details
-
SimpleTestTokenAuthenticator
public SimpleTestTokenAuthenticator()
-
-
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 interfaceorg.pac4j.core.credentials.authenticator.Authenticator
-