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