public class LibPQFactory extends WrappedFactory
| Modifier and Type | Class and Description |
|---|---|
static class |
LibPQFactory.ConsoleCallbackHandler
A CallbackHandler that reads the password from the console or returns the password given to its
constructor.
|
| Modifier and Type | Field and Description |
|---|---|
(package private) boolean |
defaultfile |
(package private) javax.net.ssl.KeyManager |
km |
factory| Constructor and Description |
|---|
LibPQFactory(java.util.Properties info) |
| Modifier and Type | Method and Description |
|---|---|
private javax.security.auth.callback.CallbackHandler |
getCallbackHandler(java.util.Properties info) |
private void |
initP12(java.lang.String sslkeyfile,
java.util.Properties info) |
private void |
initPk8(java.lang.String sslkeyfile,
java.lang.String defaultdir,
java.util.Properties info) |
void |
throwKeyManagerException()
Propagates any exception from
LazyKeyManager. |
createSocket, createSocket, createSocket, createSocket, createSocket, getDefaultCipherSuites, getSupportedCipherSuitespublic LibPQFactory(java.util.Properties info)
throws PSQLException
info - the connection parameters The following parameters are used:
sslmode,sslcert,sslkey,sslrootcert,sslhostnameverifier,sslpasswordcallback,sslpasswordPSQLException - if security error appears when initializing factoryprivate javax.security.auth.callback.CallbackHandler getCallbackHandler(java.util.Properties info)
throws PSQLException
PSQLExceptionprivate void initPk8(java.lang.String sslkeyfile,
java.lang.String defaultdir,
java.util.Properties info)
throws PSQLException
PSQLExceptionprivate void initP12(java.lang.String sslkeyfile,
java.util.Properties info)
throws PSQLException
PSQLExceptionpublic void throwKeyManagerException()
throws PSQLException
LazyKeyManager.PSQLException - if there is an exception to propagate