public class SQLPasswordAuthenticationProvider extends Object implements AuthenticationProvider, Serializable
Modifier | Constructor and Description |
---|---|
protected |
SQLPasswordAuthenticationProvider(Connection connection,
String schemaName,
SQLDialect sqlDialect) |
protected |
SQLPasswordAuthenticationProvider(DataSource dataSource,
String schemaName,
SQLDialect sqlDialect) |
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.
|
protected void |
postDeserialize(Connection connection) |
protected void |
postDeserialize(DataSource dataSource) |
protected void |
preSerialize() |
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.
|
protected SQLPasswordAuthenticationProvider(Connection connection, String schemaName, SQLDialect sqlDialect) throws AccessControlException
AccessControlException
protected SQLPasswordAuthenticationProvider(DataSource dataSource, String schemaName, SQLDialect sqlDialect) throws AccessControlException
AccessControlException
protected void preSerialize()
protected void postDeserialize(DataSource dataSource)
protected void postDeserialize(Connection connection)
public void authenticate(Resource resource, Credentials credentials) throws AccessControlException
AuthenticationProvider
authenticate
in interface AuthenticationProvider
resource
- the resource to be authenticatedcredentials
- the credentials to authenticate the resourceAccessControlException
- if authentication failed or an error occurspublic void authenticate(Resource resource) throws AccessControlException
AuthenticationProvider
authenticate
in interface AuthenticationProvider
resource
- the resource to be authenticatedAccessControlException
- if the resource is not authenticated or if an error occurspublic void validateCredentials(Credentials credentials) throws AccessControlException
AuthenticationProvider
validateCredentials
in interface AuthenticationProvider
credentials
- the authentication credentials to validateAccessControlException
- if the credentials are invalid.public void setCredentials(Resource resource, Credentials credentials) throws AccessControlException
AuthenticationProvider
setCredentials
in interface AuthenticationProvider
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 2015, Acciente, LLC.All rights reserved.