Class EPPSSLContext
java.lang.Object
com.verisign.epp.transport.client.EPPSSLContext
The
EPPSSLContext contains initialized SSL objects that can be used
to establish SSL connections. The attributes include an SSLContext,
an SSLSocketFactory, and an optional set of SSL enabled protocols.-
Constructor Summary
ConstructorsConstructorDescriptionDefault constructor.EPPSSLContext(EPPSSLConfig aSSLConfig) Creates an instance ofEPPSSLContextthat takes anEPPSSLConfig.EPPSSLContext(SSLContext aSSLContext) Creates an instance ofEPPSSLContextwith anSSLContext.EPPSSLContext(SSLContext aSSLContext, String[] aSslEnabledProtocols, String[] aSslEnabledCipherSuites) Creates an instance ofEPPSSLContextwith theSSLContext, SSL enabled protocols, and SSL enabled cipher suites. -
Method Summary
Modifier and TypeMethodDescriptionGets theEPPSSLConfigthat's associated with thisEPPSSLContext.Gets theSSLContext.String[]Gets the optional SSL enabled cipher suitesStringarray.String[]Gets the optional SSL enabled protocolsStringarray.Gets theSSLSocketFactory.booleanChecks whetherSSLContexthas been set.booleanChecks whether SSL enabled cipher suites has been set.booleanChecks whether SSL enabled protocols has been set.booleanChecks whetherSSLSocketFactoryhas been set.voidsetSslConfig(EPPSSLConfig aSslConfig) Sets theEPPSSLConfigthat's associated with thisEPPSSLContext.voidsetSSLContext(SSLContext aSSLContext) Sets theSSLContext.voidsetSSLEnabledCipherSuites(String[] aSslEnabledCipherSuites) Sets the optional SSL enabled cipher suitesStringarray.voidsetSSLEnabledProtocols(String[] aSslEnabledProtocols) Sets the optional SSL enabled protocolsStringarray.voidsetSSLSocketFactory(SSLSocketFactory aSSLSocketFactory) Sets theSSLSocketFactory, which should be theSocketFactoryof theSSLContextattribute.
-
Constructor Details
-
EPPSSLContext
public EPPSSLContext()Default constructor. -
EPPSSLContext
Creates an instance ofEPPSSLContextthat takes anEPPSSLConfig.- Parameters:
aSSLConfig-EPPSSLConfiginstance
-
EPPSSLContext
Creates an instance ofEPPSSLContextwith anSSLContext.- Parameters:
aSSLContext-SSLContextinstance
-
EPPSSLContext
public EPPSSLContext(SSLContext aSSLContext, String[] aSslEnabledProtocols, String[] aSslEnabledCipherSuites) Creates an instance ofEPPSSLContextwith theSSLContext, SSL enabled protocols, and SSL enabled cipher suites.- Parameters:
aSSLContext-SSLContextinstanceaSslEnabledProtocols-Stringarray of enabled SSL protocolsaSslEnabledCipherSuites-Stringarray of enabled SSL cipher suites
-
-
Method Details
-
getSSLContext
Gets theSSLContext.- Returns:
SSLContextinstance
-
setSSLContext
Sets theSSLContext.- Parameters:
aSSLContext-SSLContextto set
-
hasSSLContext
public boolean hasSSLContext()Checks whetherSSLContexthas been set.- Returns:
trueif set;falseotherwise.
-
getSSLSocketFactory
Gets theSSLSocketFactory.- Returns:
SSLSocketFactoryinstance
-
setSSLSocketFactory
Sets theSSLSocketFactory, which should be theSocketFactoryof theSSLContextattribute.- Parameters:
aSSLSocketFactory-SSLSocketFactoryinstance
-
hasSSLSocketFactory
public boolean hasSSLSocketFactory()Checks whetherSSLSocketFactoryhas been set.- Returns:
trueif set;falseotherwise.
-
getSSLEnabledProtocols
Gets the optional SSL enabled protocolsStringarray.- Returns:
Stringarray if set;nullotherwise.
-
setSSLEnabledProtocols
Sets the optional SSL enabled protocolsStringarray.- Parameters:
aSslEnabledProtocols-Stringarray of enabled SSL protocols
-
hasSSLEnabledProtocols
public boolean hasSSLEnabledProtocols()Checks whether SSL enabled protocols has been set.- Returns:
trueif set;falseotherwise.
-
getSSLEnabledCipherSuites
Gets the optional SSL enabled cipher suitesStringarray.- Returns:
Stringarray if set;nullotherwise.
-
setSSLEnabledCipherSuites
Sets the optional SSL enabled cipher suitesStringarray.- Parameters:
aSslEnabledCipherSuites-Stringarray of enabled SSL cipher suites
-
hasSSLEnabledCipherSuites
public boolean hasSSLEnabledCipherSuites()Checks whether SSL enabled cipher suites has been set.- Returns:
trueif set;falseotherwise.
-
getSslConfig
Gets theEPPSSLConfigthat's associated with thisEPPSSLContext. The SSL configuration may benull, since an instantiatedSSLContextcould have been used.- Returns:
- the sslConfig
EPPSSLConfigif defined;nullotherwise.
-
setSslConfig
Sets theEPPSSLConfigthat's associated with thisEPPSSLContext.- Parameters:
aSslConfig- the SSL Config to set
-