Package org.jppf.ssl
Class SSLHelper_Old
java.lang.Object
org.jppf.ssl.SSLHelper_Old
Utility class handling all aspects of the SSL configuration.
- Author:
- Laurent Cohen
-
Method Summary
Modifier and TypeMethodDescriptionstatic voidconfigureJMXProperties(String protocol, Map<String, Object> env) Configure the SSL environment parameters for a JMX connector server or client.static SocketWrappercreateSSLClientConnection(SocketWrapper socketClient) Create an SSL connection over an established plain socket connection.static SSLHelper2getJPPFJMXremoteSSLHelper(Map<String, ?> env) Get an SSL context based on the configuration specified in the JMX environment map.static SSLContextgetSSLContext(int identifier) Get a SSL context from the SSL configuration.static SSLParametersGet SSL parameters from the configuration.static voidReset the SSL configuration.
-
Method Details
-
getSSLContext
Get a SSL context from the SSL configuration.- Parameters:
identifier- identifies the type of channel for which to get the SSL context.- Returns:
- a
SSLContextinstance. - Throws:
Exception- if any error occurs.
-
getSSLParameters
Get SSL parameters from the configuration.- Returns:
- a
SSLParametersinstance. - Throws:
Exception- if any error occurs.
-
createSSLClientConnection
Create an SSL connection over an established plain socket connection.- Parameters:
socketClient- the plain connection, already connected.- Returns:
- a
SocketWrapperwhose socket is anSSLSocketwrapping theSocketof the plain connection. - Throws:
Exception- if an error occurs while configuring the SSL parameters.
-
configureJMXProperties
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
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
SSLHelper2instance.
-