Package mireka.pop

Interface TlsConfiguration

  • All Known Implementing Classes:
    JsseDefaultTlsConfiguration, PrivateTlsConfiguration

    public interface TlsConfiguration
    TlsConfiguration provides information about whether the TLS extension is enabled and provides a factory method which creates configured SSLSocket instances.
    • Method Summary

      All Methods Instance Methods Abstract Methods 
      Modifier and Type Method Description
      javax.net.ssl.SSLSocket createSSLSocket​(java.net.Socket socket)
      Returns an SSLSocket which wraps the supplied non-secured socket.
      boolean isEnabled()
      Returns true if TLS is enabled.
    • Method Detail

      • isEnabled

        boolean isEnabled()
        Returns true if TLS is enabled.
      • createSSLSocket

        javax.net.ssl.SSLSocket createSSLSocket​(java.net.Socket socket)
                                         throws java.io.IOException
        Returns an SSLSocket which wraps the supplied non-secured socket. The returned socket is in server mode.
        Parameters:
        socket - the socket to be wrapped
        Throws:
        java.io.IOException