public class LibPQFactory extends WrappedFactory implements HostnameVerifier
_factory| Constructor and Description |
|---|
LibPQFactory(Properties info) |
| Modifier and Type | Method and Description |
|---|---|
void |
throwKeyManagerException()
Propagates any exception from
LazyKeyManager |
boolean |
verify(String hostname,
SSLSession session)
Verifies the server certificate according to the libpq rules.
|
static boolean |
verifyHostName(String hostname,
String pattern) |
createSocket, createSocket, createSocket, createSocket, createSocket, getDefaultCipherSuites, getSupportedCipherSuitesgetDefaultcreateSocketpublic LibPQFactory(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 factorypublic void throwKeyManagerException()
throws PSQLException
LazyKeyManagerPSQLException - if there is an exception to propagatepublic boolean verify(String hostname, SSLSession session)
verify in interface HostnameVerifierhostname - Hostname or IP address of the server.session - The SSL session.Copyright © 2018 PostgreSQL Global Development Group. All rights reserved.