public interface AuthenticationProvider
Credentials
implementation.Modifier and Type | Field and Description |
---|---|
static int |
HIGHEST_PLATFORM_PRECEDENCE
Defines the highest precedence for
Ordered providers of the platform. |
static int |
LOWEST_PLATFORM_PRECEDENCE
Defines the lowest precedence for
Ordered providers of the platform. |
Modifier and Type | Method and Description |
---|---|
AuthenticationDetails |
authenticate(Credentials credentials)
Authenticates a user and provides authentication details.
|
boolean |
supports(java.lang.Class<?> credentialsClass)
Checks if this provider supports passed credentials class or not.
|
static final int HIGHEST_PLATFORM_PRECEDENCE
Ordered
providers of the platform.static final int LOWEST_PLATFORM_PRECEDENCE
Ordered
providers of the platform.@Nullable AuthenticationDetails authenticate(Credentials credentials) throws LoginException
credentials
- credentialsLoginException
- if authentication failsboolean supports(java.lang.Class<?> credentialsClass)
credentialsClass
- credentials classCredentials
object.