Package org.postgresql.ssl
Class LibPQFactory
java.lang.Object
javax.net.SocketFactory
javax.net.ssl.SSLSocketFactory
org.postgresql.ssl.WrappedFactory
org.postgresql.ssl.LibPQFactory
- Direct Known Subclasses:
LibPQFactory
Provide an SSLSocketFactory that is compatible with the libpq behaviour.
-
Nested Class Summary
Modifier and TypeClassDescriptionstatic class
A CallbackHandler that reads the password from the console or returns the password given to its constructor. -
Field Summary
Fields inherited from class org.postgresql.ssl.WrappedFactory
factory
-
Constructor Summary
-
Method Summary
Methods inherited from class org.postgresql.ssl.WrappedFactory
createSocket, createSocket, createSocket, createSocket, createSocket, getDefaultCipherSuites, getSupportedCipherSuites
Methods inherited from class javax.net.ssl.SSLSocketFactory
createSocket, getDefault
Methods inherited from class javax.net.SocketFactory
createSocket
-
Constructor Details
-
LibPQFactory
- Parameters:
info
- the connection parameters The following parameters are used: sslmode,sslcert,sslkey,sslrootcert,sslhostnameverifier,sslpasswordcallback,sslpassword- Throws:
PSQLException
- if security error appears when initializing factory
-
-
Method Details
-
throwKeyManagerException
Propagates any exception fromLazyKeyManager
.- Throws:
PSQLException
- if there is an exception to propagate
-