Class EPPSSLContext
- java.lang.Object
-
- com.verisign.epp.transport.client.EPPSSLContext
-
public class EPPSSLContext extends java.lang.Object
TheEPPSSLContext
contains initialized SSL objects that can be used to establish SSL connections. The attributes include anSSLContext
, anSSLSocketFactory
, and an optional set of SSL enabled protocols.
-
-
Constructor Summary
Constructors Constructor Description EPPSSLContext()
Default constructor.EPPSSLContext(javax.net.ssl.SSLContext aSSLContext)
Creates an instance ofEPPSSLContext
that takes the required set of attributes.EPPSSLContext(javax.net.ssl.SSLContext aSSLContext, java.lang.String[] aSslEnabledProtocols, java.lang.String[] aSslEnabledCipherSuites)
Creates an instance ofEPPSSLContext
that all of the attributes.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description javax.net.ssl.SSLContext
getSSLContext()
Gets theSSLContext
.java.lang.String[]
getSSLEnabledCipherSuites()
Gets the optional SSL enabled cipher suitesString
array.java.lang.String[]
getSSLEnabledProtocols()
Gets the optional SSL enabled protocolsString
array.javax.net.ssl.SSLSocketFactory
getSSLSocketFactory()
Gets theSSLSocketFactory
.boolean
hasSSLContext()
Checks whetherSSLContext
has been set.boolean
hasSSLEnabledCipherSuites()
Checks whether SSL enabled cipher suites has been set.boolean
hasSSLEnabledProtocols()
Checks whether SSL enabled protocols has been set.boolean
hasSSLSocketFactory()
Checks whetherSSLSocketFactory
has been set.void
setSSLContext(javax.net.ssl.SSLContext aSSLContext)
Sets theSSLContext
.void
setSSLEnabledCipherSuites(java.lang.String[] aSslEnabledCipherSuites)
Sets the optional SSL enabled cipher suitesString
array.void
setSSLEnabledProtocols(java.lang.String[] aSslEnabledProtocols)
Sets the optional SSL enabled protocolsString
array.void
setSSLSocketFactory(javax.net.ssl.SSLSocketFactory aSSLSocketFactory)
Sets theSSLSocketFactory
, which should be theSocketFactory
of theSSLContext
attribute.
-
-
-
Constructor Detail
-
EPPSSLContext
public EPPSSLContext()
Default constructor.
-
EPPSSLContext
public EPPSSLContext(javax.net.ssl.SSLContext aSSLContext)
Creates an instance ofEPPSSLContext
that takes the required set of attributes.- Parameters:
aSSLContext
-SSLContext
instance
-
EPPSSLContext
public EPPSSLContext(javax.net.ssl.SSLContext aSSLContext, java.lang.String[] aSslEnabledProtocols, java.lang.String[] aSslEnabledCipherSuites)
Creates an instance ofEPPSSLContext
that all of the attributes.- Parameters:
aSSLContext
-SSLContext
instanceaSslEnabledProtocols
-String
array of enabled SSL protocolsaSslEnabledCipherSuites
-String
array of enabled SSL cipher suites
-
-
Method Detail
-
getSSLContext
public javax.net.ssl.SSLContext getSSLContext()
Gets theSSLContext
.- Returns:
SSLContext
instance
-
setSSLContext
public void setSSLContext(javax.net.ssl.SSLContext aSSLContext)
Sets theSSLContext
.- Parameters:
aSSLContext
-SSLContext
to set
-
hasSSLContext
public boolean hasSSLContext()
Checks whetherSSLContext
has been set.- Returns:
true
if set;false
otherwise.
-
getSSLSocketFactory
public javax.net.ssl.SSLSocketFactory getSSLSocketFactory()
Gets theSSLSocketFactory
.- Returns:
SSLSocketFactory
instance
-
setSSLSocketFactory
public void setSSLSocketFactory(javax.net.ssl.SSLSocketFactory aSSLSocketFactory)
Sets theSSLSocketFactory
, which should be theSocketFactory
of theSSLContext
attribute.- Parameters:
aSSLSocketFactory
-SSLSocketFactory
instance
-
hasSSLSocketFactory
public boolean hasSSLSocketFactory()
Checks whetherSSLSocketFactory
has been set.- Returns:
true
if set;false
otherwise.
-
getSSLEnabledProtocols
public java.lang.String[] getSSLEnabledProtocols()
Gets the optional SSL enabled protocolsString
array.- Returns:
String
array if set;null
otherwise.
-
setSSLEnabledProtocols
public void setSSLEnabledProtocols(java.lang.String[] aSslEnabledProtocols)
Sets the optional SSL enabled protocolsString
array.- Parameters:
aSslEnabledProtocols
-String
array of enabled SSL protocols
-
hasSSLEnabledProtocols
public boolean hasSSLEnabledProtocols()
Checks whether SSL enabled protocols has been set.- Returns:
true
if set;false
otherwise.
-
getSSLEnabledCipherSuites
public java.lang.String[] getSSLEnabledCipherSuites()
Gets the optional SSL enabled cipher suitesString
array.- Returns:
String
array if set;null
otherwise.
-
setSSLEnabledCipherSuites
public void setSSLEnabledCipherSuites(java.lang.String[] aSslEnabledCipherSuites)
Sets the optional SSL enabled cipher suitesString
array.- Parameters:
aSslEnabledCipherSuites
-String
array of enabled SSL cipher suites
-
hasSSLEnabledCipherSuites
public boolean hasSSLEnabledCipherSuites()
Checks whether SSL enabled cipher suites has been set.- Returns:
true
if set;false
otherwise.
-
-