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 |
setCredentials(Resource resource,
Credentials credentials)
Sets (or resets) the authentication credentials of the specified resource.
|
void |
validateCredentials(Credentials credentials)
Checks if the the authentication credentials are valid, for example this method may check if the credentials
satisfy the minimum strength requirements.
|
void authenticate(Resource resource, Credentials credentials) throws AccessControlException
resource
- the resource to be authenticatedcredentials
- the credentials to authenticate the resourceAccessControlException
- if authentication failed or an error occursvoid authenticate(Resource resource) throws AccessControlException
resource
- the resource to be authenticatedAccessControlException
- if the resource is not authenticated or if an error occursvoid validateCredentials(Credentials credentials) throws AccessControlException
credentials
- the authentication credentials to validateAccessControlException
- if the credentials are invalid.void setCredentials(Resource resource, Credentials credentials) throws AccessControlException
resource
- the resource for which the credentials should be setcredentials
- the new authentication credentials for the resourceAccessControlException
- if an error occurs.
OACC is a Java Application Security Framework developed by Acciente, LLC..
Copyright 2014, Acciente, LLC.All rights reserved.