|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectjavax.net.SocketFactory
javax.net.ssl.SSLSocketFactory
org.restlet.engine.ssl.WrapperSslSocketFactory
public class WrapperSslSocketFactory
SSL socket factory that wraps the default one to do extra initialization. Configures the cipher suites and the SSL certificate request.
| Constructor Summary | |
|---|---|
WrapperSslSocketFactory(DefaultSslContextFactory contextFactory,
SSLSocketFactory wrappedSocketFactory)
Constructor. |
|
| Method Summary | |
|---|---|
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. |
| Methods inherited from class javax.net.ssl.SSLSocketFactory |
|---|
getDefault |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public WrapperSslSocketFactory(DefaultSslContextFactory contextFactory,
SSLSocketFactory wrappedSocketFactory)
contextFactory - The parent SSL context factory.wrappedSocketFactory - The wrapped SSL server socket factory.| Method Detail |
|---|
public Socket createSocket()
throws IOException
createSocket in class SocketFactoryIOException
public Socket createSocket(InetAddress host,
int port)
throws IOException
createSocket in class SocketFactoryIOException
public Socket createSocket(InetAddress host,
int port,
InetAddress localAddress,
int localPort)
throws IOException
createSocket in class SocketFactoryIOException
public Socket createSocket(Socket s,
String host,
int port,
boolean autoClose)
throws IOException
createSocket in class SSLSocketFactoryIOException
public Socket createSocket(String host,
int port)
throws IOException,
UnknownHostException
createSocket in class SocketFactoryIOException
UnknownHostException
public Socket createSocket(String host,
int port,
InetAddress localAddress,
int localPort)
throws IOException,
UnknownHostException
createSocket in class SocketFactoryIOException
UnknownHostExceptionpublic DefaultSslContextFactory getContextFactory()
public String[] getDefaultCipherSuites()
getDefaultCipherSuites in class SSLSocketFactorypublic String[] getSupportedCipherSuites()
getSupportedCipherSuites in class SSLSocketFactorypublic SSLSocketFactory getWrappedSocketFactory()
protected SSLSocket initSslSocket(SSLSocket sslSocket)
sslSocket - The socket to initialize.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||