Package org.jppf.ssl

Class SSLHelper_Old

java.lang.Object
org.jppf.ssl.SSLHelper_Old

public final class SSLHelper_Old extends Object
Utility class handling all aspects of the SSL configuration.
Author:
Laurent Cohen
  • Method Details

    • getSSLContext

      public static SSLContext getSSLContext(int identifier) throws Exception
      Get a SSL context from the SSL configuration.
      Parameters:
      identifier - identifies the type of channel for which to get the SSL context.
      Returns:
      a SSLContext instance.
      Throws:
      Exception - if any error occurs.
    • getSSLParameters

      public static SSLParameters getSSLParameters() throws Exception
      Get SSL parameters from the configuration.
      Returns:
      a SSLParameters instance.
      Throws:
      Exception - if any error occurs.
    • createSSLClientConnection

      public static SocketWrapper createSSLClientConnection(SocketWrapper socketClient) throws Exception
      Create an SSL connection over an established plain socket connection.
      Parameters:
      socketClient - the plain connection, already connected.
      Returns:
      a SocketWrapper whose socket is an SSLSocket wrapping the Socket of the plain connection.
      Throws:
      Exception - if an error occurs while configuring the SSL parameters.
    • configureJMXProperties

      public static void configureJMXProperties(String protocol, Map<String,Object> env) throws Exception
      Configure the SSL environment parameters for a JMX connector server or client.
      Parameters:
      protocol - the JMX remote protocol to use.
      env - the environment in which to add the SSL/TLS properties.
      Throws:
      Exception - if any error occurs.
    • resetConfig

      public static void resetConfig()
      Reset the SSL configuration.
    • getJPPFJMXremoteSSLHelper

      public static SSLHelper2 getJPPFJMXremoteSSLHelper(Map<String,?> env)
      Get an SSL context based on the configuration specified in the JMX environment map.
      Parameters:
      env - the env to get SSL proeprties from.
      Returns:
      an SSLHelper2 instance.