public class AuthenticationProvider
extends java.lang.Object
| Modifier and Type | Class and Description |
|---|---|
static interface |
AuthenticationProvider.AuthenticationCallback
Authentication callback.
|
static interface |
AuthenticationProvider.TokenProvider
Application callback to request authentication token value.
|
static class |
AuthenticationProvider.Type
The supported types of the authentication provider.
|
| Constructor and Description |
|---|
AuthenticationProvider(AuthenticationProvider.Type type,
java.lang.String ticketKey,
AuthenticationProvider.TokenProvider tokenProvider)
Create a new authentication provider.
|
public AuthenticationProvider(AuthenticationProvider.Type type, java.lang.String ticketKey, AuthenticationProvider.TokenProvider tokenProvider)
type - The type for the provider.ticketKey - The ticket key for the provider. This can be any value and does not need to match user identifier.
This value will be used in the token provider callback for giving context. The only requirement
is that ticket key is different if registering a new provider (for example to switch user).
Typical implementations will pass user identifier as a value but it's not a requirement.tokenProvider - The token provider that will be used to get a current authentication token.