Interface SSLProvider

All Known Implementing Classes:
AcmeSSLContext, GeneratingSSLContext, SSLContext, SSLContextCollection, StaticSSLContext

public interface SSLProvider
  • Method Details

    • createServerSocket

      ServerSocket createServerSocket(int port, int backlog, InetAddress bindAddress) throws IOException
      Throws:
      IOException
    • wrapAcceptedSocket

      Socket wrapAcceptedSocket(Socket socket) throws IOException
      Throws:
      IOException
    • createSocket

      Socket createSocket() throws IOException
      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 only
      port - 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

      String[] getApplicationProtocols(Socket socket)
      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.