public interface AuthenticationProvider
| Modifier and Type | Method and Description |
|---|---|
void |
authenticate(Resource resource)
Verifies that the specified resource is authenticated.
|
void |
authenticate(Resource resource,
Credentials credentials)
Authenticates the specified resource using the supplied credentials.
|
void |
deleteCredentials(Resource resource)
Removes the authentication credentials of the specified resource.
|
void |
setCredentials(Resource resource,
Credentials credentials)
Sets (or resets) the authentication credentials of the specified resource.
|
void |
validateCredentials(String resourceClassName,
String domainName,
Credentials credentials)
Checks if the the authentication credentials are valid for the specified resource class and domain.
|
void authenticate(Resource resource, Credentials credentials)
resource - the resource to be authenticatedcredentials - the credentials to authenticate the resourceIncorrectCredentialsException - if authentication failed due to incorrect credentialsvoid authenticate(Resource resource)
resource - the resource to be authenticatedvoid validateCredentials(String resourceClassName, String domainName, Credentials credentials)
resourceClassName - the resource class for which to validate the specified credentialsdomainName - the domain for which to validate the specified credentialscredentials - the authentication credentials to validateInvalidCredentialsException - if the credentials are invalidvoid setCredentials(Resource resource, Credentials credentials)
resource - the resource for which the credentials should be setcredentials - the new authentication credentials for the resourcevoid deleteCredentials(Resource resource)
resource - the resource for which the credentials should be removed
OACC is a Java Application Security Framework developed by Acciente, LLC., released under Apache License 2.0.
Copyright 2009-2017, Acciente, LLC.