public class PicodataSSLSocketFactory extends SSLSocketFactory
SSLSocketFactory implementation that works with PKCS#8 (single-key, single-cert container)
and PKCS#12 (multi-key, multi-cert container) keystores. Use Java keytool to create PKCS#* containers from
traditional (PKCS#1) PEM files generated by ssl-keygen and other similar tools.
The following connection parameters are used:
SslMode for the other supported modes. The default mode is "require".CallbackHandler implementation. If any of the keystores are encrypted,
and no password and callback are provided, the password will be asked from console - note that this might silently
halt the application.HostnameVerifier implementation, used for the server hostname verification in "verify-full"
mode. The hostname verifier provided by pgJDBC is used by default.
Look into the PicodataProperty class documentation to find more about the connection parameters'
default values.
| Constructor and Description |
|---|
PicodataSSLSocketFactory(Properties info) |
| Modifier and Type | Method and Description |
|---|---|
Socket |
createSocket(InetAddress host,
int port) |
Socket |
createSocket(InetAddress address,
int port,
InetAddress localAddress,
int localPort) |
Socket |
createSocket(Socket socket,
String host,
int port,
boolean autoClose) |
Socket |
createSocket(String host,
int port) |
Socket |
createSocket(String host,
int port,
InetAddress localHost,
int localPort) |
String[] |
getDefaultCipherSuites() |
SSLSocketFactory |
getFactory()
Get initialized SSL socket factory instance
|
String[] |
getSupportedCipherSuites() |
createSocket, getDefaultcreateSocketpublic PicodataSSLSocketFactory(Properties info) throws PicodataSQLException
info - the connection parametersPicodataSQLException - if any error arises from the Java security classes when initializing factorypublic SSLSocketFactory getFactory()
public Socket createSocket(InetAddress host, int port) throws IOException
createSocket in class SocketFactoryIOExceptionpublic Socket createSocket(String host, int port) throws IOException
createSocket in class SocketFactoryIOExceptionpublic Socket createSocket(String host, int port, InetAddress localHost, int localPort) throws IOException
createSocket in class SocketFactoryIOExceptionpublic Socket createSocket(InetAddress address, int port, InetAddress localAddress, int localPort) throws IOException
createSocket in class SocketFactoryIOExceptionpublic Socket createSocket(Socket socket, String host, int port, boolean autoClose) throws IOException
createSocket in class SSLSocketFactoryIOExceptionpublic String[] getDefaultCipherSuites()
getDefaultCipherSuites in class SSLSocketFactorypublic String[] getSupportedCipherSuites()
getSupportedCipherSuites in class SSLSocketFactoryCopyright © 2025 Picodata. All rights reserved.