public class WrapperSslSocketFactory
extends javax.net.ssl.SSLSocketFactory
Constructor and Description |
---|
WrapperSslSocketFactory(DefaultSslContextFactory contextFactory,
javax.net.ssl.SSLSocketFactory wrappedSocketFactory)
Constructor.
|
Modifier and Type | Method and Description |
---|---|
java.net.Socket |
createSocket() |
java.net.Socket |
createSocket(java.net.InetAddress host,
int port) |
java.net.Socket |
createSocket(java.net.InetAddress host,
int port,
java.net.InetAddress localAddress,
int localPort) |
java.net.Socket |
createSocket(java.net.Socket s,
java.lang.String host,
int port,
boolean autoClose) |
java.net.Socket |
createSocket(java.lang.String host,
int port) |
java.net.Socket |
createSocket(java.lang.String host,
int port,
java.net.InetAddress localAddress,
int localPort) |
DefaultSslContextFactory |
getContextFactory()
Returns the parent SSL context factory.
|
java.lang.String[] |
getDefaultCipherSuites() |
java.lang.String[] |
getSupportedCipherSuites() |
javax.net.ssl.SSLSocketFactory |
getWrappedSocketFactory()
Returns the wrapped SSL socket factory.
|
protected javax.net.ssl.SSLSocket |
initSslSocket(javax.net.ssl.SSLSocket sslSocket)
Initializes the SSL socket.
|
public WrapperSslSocketFactory(DefaultSslContextFactory contextFactory, javax.net.ssl.SSLSocketFactory wrappedSocketFactory)
contextFactory
- The parent SSL context factory.wrappedSocketFactory
- The wrapped SSL server socket factory.public java.net.Socket createSocket() throws java.io.IOException
createSocket
in class javax.net.SocketFactory
java.io.IOException
public java.net.Socket createSocket(java.net.InetAddress host, int port) throws java.io.IOException
createSocket
in class javax.net.SocketFactory
java.io.IOException
public java.net.Socket createSocket(java.net.InetAddress host, int port, java.net.InetAddress localAddress, int localPort) throws java.io.IOException
createSocket
in class javax.net.SocketFactory
java.io.IOException
public java.net.Socket createSocket(java.net.Socket s, java.lang.String host, int port, boolean autoClose) throws java.io.IOException
createSocket
in class javax.net.ssl.SSLSocketFactory
java.io.IOException
public java.net.Socket createSocket(java.lang.String host, int port) throws java.io.IOException, java.net.UnknownHostException
createSocket
in class javax.net.SocketFactory
java.io.IOException
java.net.UnknownHostException
public java.net.Socket createSocket(java.lang.String host, int port, java.net.InetAddress localAddress, int localPort) throws java.io.IOException, java.net.UnknownHostException
createSocket
in class javax.net.SocketFactory
java.io.IOException
java.net.UnknownHostException
public DefaultSslContextFactory getContextFactory()
public java.lang.String[] getDefaultCipherSuites()
getDefaultCipherSuites
in class javax.net.ssl.SSLSocketFactory
public java.lang.String[] getSupportedCipherSuites()
getSupportedCipherSuites
in class javax.net.ssl.SSLSocketFactory
public javax.net.ssl.SSLSocketFactory getWrappedSocketFactory()
protected javax.net.ssl.SSLSocket initSslSocket(javax.net.ssl.SSLSocket sslSocket)
sslSocket
- The socket to initialize.Copyright © 2005-2024 Restlet.