public class AuthenticationPluginManager
extends java.lang.Object
| Modifier and Type | Field and Description |
|---|---|
private static java.util.logging.Logger |
LOGGER |
| Modifier | Constructor and Description |
|---|---|
private |
AuthenticationPluginManager() |
| Modifier and Type | Method and Description |
|---|---|
static byte[] |
getEncodedPassword(AuthenticationRequestType type,
java.util.Properties info)
Helper that wraps getPassword(...), checks that it is not-null, and encodes
it as a byte array.
|
static java.lang.String |
getPassword(AuthenticationRequestType type,
java.util.Properties info)
If a password is requested by the server during connection initiation, this
method will be invoked to supply the password.
|
public static java.lang.String getPassword(AuthenticationRequestType type, java.util.Properties info) throws PSQLException
type - The authentication type that is being requestedinfo - The connection properties for the connectionPSQLException - Throws a PSQLException if the plugin class cannot be instantiatedpublic static byte[] getEncodedPassword(AuthenticationRequestType type, java.util.Properties info) throws PSQLException
type - The authentication type that is being requestedinfo - The connection properties for the connectionPSQLException - Throws a PSQLException if the plugin class cannot be instantiated or if the retrieved password is null.