Interface SSLProvider
- All Known Implementing Classes:
AcmeSSLContext,GeneratingSSLContext,SSLContext,SSLContextCollection,StaticSSLContext
public interface SSLProvider
-
Method Summary
Modifier and TypeMethodDescriptioncreateServerSocket(int port, int backlog, InetAddress bindAddress) createSocket(String host, int port, int connectTimeout, String sniServerName, String[] applicationProtocols) createSocket(String host, int port, InetAddress addr, int localPort, int connectTimeout, String sniServerName, String[] applicationProtocols) createSocket(Socket s, String host, int port, int connectTimeout, String sniServerName, String[] applicationProtocols) String[]getApplicationProtocols(Socket socket) booleanvoidstop()Advises the SSL Provider to stop providing its services.wrapAcceptedSocket(Socket socket)
-
Method Details
-
createServerSocket
- Throws:
IOException
-
wrapAcceptedSocket
- Throws:
IOException
-
createSocket
- Throws:
IOException
-
createSocket
Socket createSocket(Socket s, String host, int port, int connectTimeout, @Nullable String sniServerName, @Nullable String[] applicationProtocols) throws IOException - Parameters:
host- relevant to verify the server cert onlyport- relevant to verify the server cert only- Throws:
IOException
-
createSocket
Socket createSocket(String host, int port, int connectTimeout, @Nullable String sniServerName, @Nullable String[] applicationProtocols) throws IOException - Throws:
IOException
-
createSocket
Socket createSocket(String host, int port, InetAddress addr, int localPort, int connectTimeout, @Nullable String sniServerName, @Nullable String[] applicationProtocols) throws IOException - Throws:
IOException
-
showSSLExceptions
boolean showSSLExceptions() -
getApplicationProtocols
- Returns:
- the application protocols selected by the TLS server, or null elsewise (not a TLS connection, ALPN not supported, ...)
-
stop
void stop()Advises the SSL Provider to stop providing its services. (For most providers this will be a no-op.)No guarantee that this is only called once.
-