public class SystemAuthenticationAuthority extends java.lang.Object implements Authenticator
AuthenticationAuthority,
Credentials| Modifier and Type | Field and Description |
|---|---|
static java.lang.String |
CREDENTIALS_TYPE
Constant that holds the name of the credential property for
specifying the type of credentials being supplied.
|
KEY, PRINCIPAL, TENANT| Modifier and Type | Method and Description |
|---|---|
SystemUser |
authenticate(Credentials userCredentials)
Authenticates a user using the supplied user credentials.
|
static SystemAuthenticationAuthority |
getInstance()
Returns the single instance of the SystemAuthenticationAuthority
in the system.
|
public static final java.lang.String CREDENTIALS_TYPE
public SystemUser authenticate(Credentials userCredentials) throws AuthenticationFailedException, ConfigurationException
authenticate in interface AuthenticatoruserCredentials - the user's credentials and the type of
the credentials.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, or the type
credentials are not supported.public static final SystemAuthenticationAuthority getInstance() throws ConfigurationException
ConfigurationException - thrown if the instance could
not be accessed, possibly
due to construction errors.