public class SQLPasswordAuthenticationProvider extends Object implements AuthenticationProvider, Serializable
Modifier | Constructor and Description |
---|---|
protected |
SQLPasswordAuthenticationProvider(Connection connection,
String schemaName,
PasswordEncryptor passwordEncryptor) |
protected |
SQLPasswordAuthenticationProvider(DataSource dataSource,
String schemaName,
PasswordEncryptor passwordEncryptor) |
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)
Re-initializes the transient connection after deserialization.
|
protected void |
postDeserialize(DataSource dataSource)
Re-initializes the transient data source after deserialization.
|
protected void |
preSerialize()
Deprecated.
As of v2.0.0-rc.6; no replacement method necessary because unserializable fields are now marked as transient
|
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, PasswordEncryptor passwordEncryptor)
protected SQLPasswordAuthenticationProvider(DataSource dataSource, String schemaName, PasswordEncryptor passwordEncryptor)
@Deprecated protected void preSerialize()
protected void postDeserialize(DataSource dataSource)
dataSource
- the database dataSource to be resetIllegalStateException
- if a dataSource or connection is already setprotected void postDeserialize(Connection connection)
connection
- the database connection to be resetIllegalStateException
- if a dataSource or connection is already setpublic 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., released under Apache License 2.0.
Copyright 2009-2017, Acciente, LLC.