Class EPPSSLImpl
java.lang.Object
com.verisign.epp.transport.client.EPPSSLImpl
EPP SSL Implementation utility class that is used to initialize the SSL
configuration by using configuration properties including:
This class includes a set of static properties and methods that can be used to initialize SSL and to get the resulting initialized
EPP.SSLProtocol- Required property that can be either SSL, SSLv2, SSLv3, TLS, or TLSv1EPP.SSLKeyManager- Required SSL key manager property, for example, SunX509EPP.SSLKeyStore- Required SSL Keystore format property, for example, JKSEPP.SSLKeyFileName- Required Identity SSL Keystore file name.EPP.SSLPassPhrase- Required Identity SSL Keystore passphrase.EPP.SSLKeyPassPhrase- Optional Identity SSL private key passphrase. If not defined,EPP.SSLPassPhraseis used.EPP.SSLTrustStoreFileName- Optional Trust SSK Keystore file name. If not defined, the trust Keystore of the JRE is used.- EPP.SSLTrustStorePassPhrase - Optional Trust SSL Keystore passphrase.
This is required if
EPP.SSLTrustStoreFileNameis specified.
This class includes a set of static properties and methods that can be used to initialize SSL and to get the resulting initialized
SSLContext and
SSLSocketFactory. The initialize method is synchronized and
will immediately return if EPPSSLImpl has already been successfully
initialized. The method isInitialized can be used to check if
EPPSSLImpl has already been initialized.-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic EPPSSLContextGets the singleEPPSSLContextinitialized by theEPPSSLImpl.static SSLContextGets the SSLContext that has been initialized ifisInitializedreturnstrue, otherwise it will benull.static String[]Gets the SSL enabled cipher suites.static String[]Gets the SSL enabled protocols.static SSLSocketFactoryGets the initializeSSLSocketFactory.static X509TrustManagerGets theX509TrustManagerused inEPPSSLImpl.static booleanIs the SSL enabled cipher suites specified?static booleanIs the SSL enabled protocols specified?static voidInitialize theEPPSSLImpl, which will create an initialize theSSLContext.static EPPSSLContextinitialize(EPPSSLConfig aConfig) static booleanHas EPPSSLImpl been successfully initialized?
-
Constructor Details
-
EPPSSLImpl
public EPPSSLImpl()
-
-
Method Details
-
getSSLContext
Gets the SSLContext that has been initialized ifisInitializedreturnstrue, otherwise it will benull.- Returns:
- Initialized
SSLContextif successfully initialized;nullotherwise.
-
hasSSLEnabledProtocols
public static boolean hasSSLEnabledProtocols()Is the SSL enabled protocols specified?- Returns:
trueif specified;falseotherwise.
-
getSSLEnabledProtocols
Gets the SSL enabled protocols.- Returns:
Stringarray of SSL enabled protocols if defined;nullotherwise.
-
hasSSLEnabledCipherSuites
public static boolean hasSSLEnabledCipherSuites()Is the SSL enabled cipher suites specified?- Returns:
trueif specified;falseotherwise.
-
getSSLEnabledCipherSuites
Gets the SSL enabled cipher suites.- Returns:
Stringarray of SSL enabled cipher suites if defined;nullotherwise.
-
getEPPSSLContext
Gets the singleEPPSSLContextinitialized by theEPPSSLImpl.- Returns:
- Single
EPPSSLContextinstance if initialized;nullotherwise.
-
getTrustManager
Gets theX509TrustManagerused inEPPSSLImpl. This should be the customX509TrustManagerEPPTrustManager.- Returns:
X509TrustManagerused if set;nullotherwise.
-
isInitialized
public static boolean isInitialized()Has EPPSSLImpl been successfully initialized?- Returns:
trueif initialized;falseotherwise
-
getSSLSocketFactory
Gets the initializeSSLSocketFactory.- Returns:
- Initialized
SSLSocketFactoryif successfully initialized;nullotherwise.
-
initialize
- Throws:
EPPConException
-
initialize
Initialize theEPPSSLImpl, which will create an initialize theSSLContext. IfEPPSSLImplhas already been successfully initialized, this method will simply return.- Throws:
EPPConException- Error initializingEPPSSLImpl
-