|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface SSLWrapperFactory
Field Summary | |
---|---|
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. |
Method Summary | |
---|---|
Socket |
wrap(Socket s)
Wraps an SSLSSocket. |
SSLServerSocket |
wrap(SSLServerSocket s,
SSL ssl)
Wraps an SSLServerSocket. |
Field Detail |
---|
static final SSLWrapperFactory NO_WRAP
static final SSLWrapperFactory DUMB_WRAP
Method Detail |
---|
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
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |