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.
|
void |
deleteCredentials(Resource resource)
Removes the authentication credentials of the specified resource.
|
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(String resourceClassName,
String domainName,
Credentials credentials)
Checks if the the authentication credentials are valid for the specified resource class and domain.
|
protected SQLPasswordAuthenticationProvider(Connection connection, String schemaName, SQLDialect sqlDialect)
protected SQLPasswordAuthenticationProvider(DataSource dataSource, String schemaName, SQLDialect sqlDialect)
protected void preSerialize()
protected void postDeserialize(DataSource dataSource)
protected void postDeserialize(Connection connection)
public void authenticate(Resource resource, Credentials credentials)
AuthenticationProvider
authenticate
in interface AuthenticationProvider
resource
- the resource to be authenticatedcredentials
- the credentials to authenticate the resourcepublic void authenticate(Resource resource)
AuthenticationProvider
authenticate
in interface AuthenticationProvider
resource
- the resource to be authenticatedpublic void validateCredentials(String resourceClassName, String domainName, Credentials credentials)
AuthenticationProvider
validateCredentials
in interface AuthenticationProvider
resourceClassName
- the resource class for which to validate the specified credentialsdomainName
- the domain for which to validate the specified credentialscredentials
- the authentication credentials to validatepublic void setCredentials(Resource resource, Credentials credentials)
AuthenticationProvider
setCredentials
in interface AuthenticationProvider
resource
- the resource for which the credentials should be setcredentials
- the new authentication credentials for the resourcepublic void deleteCredentials(Resource resource)
AuthenticationProvider
deleteCredentials
in interface AuthenticationProvider
resource
- the resource for which the credentials should be removed
OACC is a Java Application Security Framework developed by Acciente, LLC..
Copyright 2015, Acciente, LLC.All rights reserved.