public interface SSLWrapperFactory
| Modifier and Type | Field and Description |
|---|---|
static SSLWrapperFactory |
DUMB_WRAP
DUMB_WRAP is useful to make sure that wrapping the sockets doesn't break
anything.
|
static SSLWrapperFactory |
NO_WRAP
NO_WRAP doesn't wrap the SSLSocket.
|
| Modifier and Type | Method and Description |
|---|---|
Socket |
wrap(Socket s)
Wraps an SSLSSocket.
|
SSLServerSocket |
wrap(SSLServerSocket s,
SSL ssl)
Wraps an SSLServerSocket.
|
static final SSLWrapperFactory NO_WRAP
static final SSLWrapperFactory DUMB_WRAP
Socket wrap(Socket s) throws IOException
s - SSLSocket to wrap.IOException - if wrapping failedSSLServerSocket wrap(SSLServerSocket s, SSL ssl) throws IOException
s - The SSLServerSocket to wrap.ssl - The SSL object that created the SSLServerSocket.
This way some important commons-ssl config can be applied
to the returned socket.IOException - if wrapping failed