@ConsumerType public interface CredentialsValidator
This interface is intended to be implemented by an application which wants to customize the validation of the users based on their credential.
A CredentialsValidator is passed to Provider providers if Provider.getId() equals
getId() or getId()
is equals to ALL_ID-
| Modifier and Type | Field and Description |
|---|---|
static String |
ALL_ID
Id used to register a validator to all providers
|
static String |
FAILED_VALIDATION_REASON
Credentials Attribute Id used to store the reason why it is not considered valid
|
| Modifier and Type | Method and Description |
|---|---|
String |
getId()
Provider identifier used to map this credential validator to it.
|
boolean |
validate(AbstractCredentials credentials)
Check the validity of a user credential.
|
static final String ALL_ID
static final String FAILED_VALIDATION_REASON
boolean validate(AbstractCredentials credentials) throws LoginException
credentials - the non null credentialtrue if the credential is valid ; false otherwiseLoginException - if the user could not be authenticatedString getId()
Copyright © 2010 - 2020 Adobe. All Rights Reserved