public class AuthenticationAuthority extends java.lang.Object implements Authenticator
AuthenticationProvider,
Credentials| Modifier and Type | Field and Description |
|---|---|
static java.lang.String |
PROVIDER_FACTORY
Constant that holds the name of the environment property for
specifying the AuthenticationProvider factory to use.
|
KEY, PRINCIPAL, TENANT| Constructor and Description |
|---|
AuthenticationAuthority(java.util.Hashtable env)
Constructs an AuthenticationAuthority with the given environment.
|
| Modifier and Type | Method and Description |
|---|---|
SystemUser |
authenticate(Credentials userCredentials)
Authenticates a user with the given Credentials.
|
public static final java.lang.String PROVIDER_FACTORY
public AuthenticationAuthority(java.util.Hashtable env)
throws ConfigurationException
env - Environment parameters used to construct the
AuthenticationAuthority.ConfigurationException - thrown if the
AuthenticationAuthority can
not be constructed.public SystemUser authenticate(Credentials userCredentials) throws AuthenticationFailedException, ConfigurationException
authenticate in interface AuthenticatoruserCredentials - the user's credentials to be
authenticated. The type of credentials
supplied must be supported by the
configured AuthenticationProvider.AuthenticationFailedException - thrown if the
authentication attempt
failed to invalid user
credentials.ConfigurationException - thrown if the required
credentials are not provided
or the provided credentials
are malformed.