Class HostSslSocketFactory
java.lang.Object
javax.net.SocketFactory
javax.net.ssl.SSLSocketFactory
io.confluent.kafka.schemaregistry.client.ssl.HostSslSocketFactory
This class is a wrapper class on top of
SSLSocketFactory to address
issue where host name is not set on BCSSLSocket when creating a socket.-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptioncreateSocket(String host, int port) createSocket(String host, int port, InetAddress localAddress, int localPort) createSocket(InetAddress address, int port) createSocket(InetAddress address, int port, InetAddress remoteAddress, int remotePort) createSocket(Socket socket, InputStream inputStream, boolean autoClose) createSocket(Socket socket, String host, int port, boolean autoClose) String[]String[]static booleanMethods inherited from class javax.net.ssl.SSLSocketFactory
getDefault
-
Constructor Details
-
HostSslSocketFactory
-
-
Method Details
-
getDefaultCipherSuites
- Specified by:
getDefaultCipherSuitesin classSSLSocketFactory
-
getSupportedCipherSuites
- Specified by:
getSupportedCipherSuitesin classSSLSocketFactory
-
createSocket
public Socket createSocket(Socket socket, String host, int port, boolean autoClose) throws IOException - Specified by:
createSocketin classSSLSocketFactory- Throws:
IOException
-
createSocket
- Overrides:
createSocketin classSocketFactory- Throws:
IOException
-
createSocket
- Specified by:
createSocketin classSocketFactory- Throws:
IOException
-
createSocket
public Socket createSocket(String host, int port, InetAddress localAddress, int localPort) throws IOException - Specified by:
createSocketin classSocketFactory- Throws:
IOException
-
createSocket
- Specified by:
createSocketin classSocketFactory- Throws:
IOException
-
createSocket
public Socket createSocket(InetAddress address, int port, InetAddress remoteAddress, int remotePort) throws IOException - Specified by:
createSocketin classSocketFactory- Throws:
IOException
-
createSocket
public Socket createSocket(Socket socket, InputStream inputStream, boolean autoClose) throws IOException - Overrides:
createSocketin classSSLSocketFactory- Throws:
IOException
-
isFipsDeployment
public static boolean isFipsDeployment()
-