Interface SSLUtil

All Known Implementing Classes:
JSSEUtil, OpenSSLUtil, SSLUtilBase

public interface SSLUtil
Provides a common interface for SSLImplementations to create the necessary JSSE implementation objects for TLS connections created via the JSSE API.
  • Method Details

    • createSSLContext

      SSLContext createSSLContext(List<String> negotiableProtocols) throws Exception
      Throws:
      Exception
    • getKeyManagers

      KeyManager[] getKeyManagers() throws Exception
      Throws:
      Exception
    • getTrustManagers

      TrustManager[] getTrustManagers() throws Exception
      Throws:
      Exception
    • configureSessionContext

      void configureSessionContext(SSLSessionContext sslSessionContext)
    • getEnabledProtocols

      String[] getEnabledProtocols() throws IllegalArgumentException
      The set of enabled protocols is the intersection of the implemented protocols and the configured protocols. If no protocols are explicitly configured, then all of the implemented protocols will be included in the returned array.
      Returns:
      The protocols currently enabled and available for clients to select from for the associated connection
      Throws:
      IllegalArgumentException - If there is no intersection between the implemented and configured protocols
    • getEnabledCiphers

      String[] getEnabledCiphers() throws IllegalArgumentException
      The set of enabled ciphers is the intersection of the implemented ciphers and the configured ciphers. If no ciphers are explicitly configured, then the default ciphers will be included in the returned array.

      The ciphers used during the TLS handshake may be further restricted by the getEnabledProtocols() and the certificates.

      Returns:
      The ciphers currently enabled and available for clients to select from for the associated connection
      Throws:
      IllegalArgumentException - If there is no intersection between the implemented and configured ciphers