public class SSLContextCollection extends Object implements SSLProvider
SSLContexts using the same port. This is only possible when using SSL with
"Server Name Indication", see http://en.wikipedia.org/wiki/Server_Name_Indication .
This requires Java 8.| Modifier and Type | Class and Description |
|---|---|
static class |
SSLContextCollection.Builder |
| Modifier and Type | Method and Description |
|---|---|
ServerSocket |
createServerSocket(int port,
int backlog,
InetAddress bindAddress) |
Socket |
createSocket(Socket s,
String host,
int port,
int connectTimeout,
String sniServerName) |
Socket |
createSocket(String host,
int port,
InetAddress addr,
int localPort,
int connectTimeout,
String sniServerName) |
Socket |
createSocket(String host,
int port,
int connectTimeout,
String sniServerName) |
boolean |
showSSLExceptions() |
Socket |
wrapAcceptedSocket(Socket socket) |
public ServerSocket createServerSocket(int port, int backlog, InetAddress bindAddress) throws IOException
createServerSocket in interface SSLProviderIOExceptionpublic Socket wrapAcceptedSocket(Socket socket) throws IOException
wrapAcceptedSocket in interface SSLProviderIOExceptionpublic Socket createSocket(String host, int port, InetAddress addr, int localPort, int connectTimeout, @Nullable String sniServerName) throws IOException
createSocket in interface SSLProviderIOExceptionpublic boolean showSSLExceptions()
showSSLExceptions in interface SSLProviderpublic Socket createSocket(String host, int port, int connectTimeout, @Nullable String sniServerName) throws IOException
createSocket in interface SSLProviderIOExceptionpublic Socket createSocket(Socket s, String host, int port, int connectTimeout, @Nullable String sniServerName) throws IOException
createSocket in interface SSLProviderhost - relevant to verify the server cert onlyport - relevant to verify the server cert onlyIOExceptionCopyright © 2019. All Rights Reserved.