public class WrapperSslSocketFactory extends SSLSocketFactory
| Constructor and Description |
|---|
WrapperSslSocketFactory(DefaultSslContextFactory contextFactory,
SSLSocketFactory wrappedSocketFactory)
Constructor.
|
| Modifier and Type | Method and Description |
|---|---|
Socket |
createSocket() |
Socket |
createSocket(InetAddress host,
int port) |
Socket |
createSocket(InetAddress host,
int port,
InetAddress localAddress,
int localPort) |
Socket |
createSocket(Socket s,
String host,
int port,
boolean autoClose) |
Socket |
createSocket(String host,
int port) |
Socket |
createSocket(String host,
int port,
InetAddress localAddress,
int localPort) |
DefaultSslContextFactory |
getContextFactory()
Returns the parent SSL context factory.
|
String[] |
getDefaultCipherSuites() |
String[] |
getSupportedCipherSuites() |
SSLSocketFactory |
getWrappedSocketFactory()
Returns the wrapped SSL socket factory.
|
protected SSLSocket |
initSslSocket(SSLSocket sslSocket)
Initializes the SSL socket.
|
createSocket, getDefaultpublic WrapperSslSocketFactory(DefaultSslContextFactory contextFactory, SSLSocketFactory wrappedSocketFactory)
contextFactory - The parent SSL context factory.wrappedSocketFactory - The wrapped SSL server socket factory.public Socket createSocket() throws IOException
createSocket in class SocketFactoryIOExceptionpublic Socket createSocket(InetAddress host, int port) throws IOException
createSocket in class SocketFactoryIOExceptionpublic Socket createSocket(InetAddress host, int port, InetAddress localAddress, int localPort) throws IOException
createSocket in class SocketFactoryIOExceptionpublic Socket createSocket(Socket s, String host, int port, boolean autoClose) throws IOException
createSocket in class SSLSocketFactoryIOExceptionpublic Socket createSocket(String host, int port) throws IOException, UnknownHostException
createSocket in class SocketFactoryIOExceptionUnknownHostExceptionpublic Socket createSocket(String host, int port, InetAddress localAddress, int localPort) throws IOException, UnknownHostException
createSocket in class SocketFactoryIOExceptionUnknownHostExceptionpublic DefaultSslContextFactory getContextFactory()
public String[] getDefaultCipherSuites()
getDefaultCipherSuites in class SSLSocketFactorypublic String[] getSupportedCipherSuites()
getSupportedCipherSuites in class SSLSocketFactorypublic SSLSocketFactory getWrappedSocketFactory()
Copyright © 2005–2025. All rights reserved.