Class EPPSSLContext
- java.lang.Object
-
- com.verisign.epp.transport.client.EPPSSLContext
-
public class EPPSSLContext extends java.lang.ObjectTheEPPSSLContextcontains 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(EPPSSLConfig aSSLConfig)Creates an instance ofEPPSSLContextthat takes anEPPSSLConfig.EPPSSLContext(javax.net.ssl.SSLContext aSSLContext)Creates an instance ofEPPSSLContextwith anSSLContext.EPPSSLContext(javax.net.ssl.SSLContext aSSLContext, java.lang.String[] aSslEnabledProtocols, java.lang.String[] aSslEnabledCipherSuites)Creates an instance ofEPPSSLContextwith theSSLContext, SSL enabled protocols, and SSL enabled cipher suites.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description EPPSSLConfiggetSslConfig()Gets theEPPSSLConfigthat's associated with thisEPPSSLContext.javax.net.ssl.SSLContextgetSSLContext()Gets theSSLContext.java.lang.String[]getSSLEnabledCipherSuites()Gets the optional SSL enabled cipher suitesStringarray.java.lang.String[]getSSLEnabledProtocols()Gets the optional SSL enabled protocolsStringarray.javax.net.ssl.SSLSocketFactorygetSSLSocketFactory()Gets theSSLSocketFactory.booleanhasSSLContext()Checks whetherSSLContexthas been set.booleanhasSSLEnabledCipherSuites()Checks whether SSL enabled cipher suites has been set.booleanhasSSLEnabledProtocols()Checks whether SSL enabled protocols has been set.booleanhasSSLSocketFactory()Checks whetherSSLSocketFactoryhas been set.voidsetSslConfig(EPPSSLConfig aSslConfig)Sets theEPPSSLConfigthat's associated with thisEPPSSLContext.voidsetSSLContext(javax.net.ssl.SSLContext aSSLContext)Sets theSSLContext.voidsetSSLEnabledCipherSuites(java.lang.String[] aSslEnabledCipherSuites)Sets the optional SSL enabled cipher suitesStringarray.voidsetSSLEnabledProtocols(java.lang.String[] aSslEnabledProtocols)Sets the optional SSL enabled protocolsStringarray.voidsetSSLSocketFactory(javax.net.ssl.SSLSocketFactory aSSLSocketFactory)Sets theSSLSocketFactory, which should be theSocketFactoryof theSSLContextattribute.
-
-
-
Constructor Detail
-
EPPSSLContext
public EPPSSLContext()
Default constructor.
-
EPPSSLContext
public EPPSSLContext(EPPSSLConfig aSSLConfig)
Creates an instance ofEPPSSLContextthat takes anEPPSSLConfig.- Parameters:
aSSLConfig-EPPSSLConfiginstance
-
EPPSSLContext
public EPPSSLContext(javax.net.ssl.SSLContext aSSLContext)
Creates an instance ofEPPSSLContextwith anSSLContext.- Parameters:
aSSLContext-SSLContextinstance
-
EPPSSLContext
public EPPSSLContext(javax.net.ssl.SSLContext aSSLContext, java.lang.String[] aSslEnabledProtocols, java.lang.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 Detail
-
getSSLContext
public javax.net.ssl.SSLContext getSSLContext()
Gets theSSLContext.- Returns:
SSLContextinstance
-
setSSLContext
public void setSSLContext(javax.net.ssl.SSLContext aSSLContext)
Sets theSSLContext.- Parameters:
aSSLContext-SSLContextto set
-
hasSSLContext
public boolean hasSSLContext()
Checks whetherSSLContexthas been set.- Returns:
trueif set;falseotherwise.
-
getSSLSocketFactory
public javax.net.ssl.SSLSocketFactory getSSLSocketFactory()
Gets theSSLSocketFactory.- Returns:
SSLSocketFactoryinstance
-
setSSLSocketFactory
public void setSSLSocketFactory(javax.net.ssl.SSLSocketFactory aSSLSocketFactory)
Sets theSSLSocketFactory, which should be theSocketFactoryof theSSLContextattribute.- Parameters:
aSSLSocketFactory-SSLSocketFactoryinstance
-
hasSSLSocketFactory
public boolean hasSSLSocketFactory()
Checks whetherSSLSocketFactoryhas been set.- Returns:
trueif set;falseotherwise.
-
getSSLEnabledProtocols
public java.lang.String[] getSSLEnabledProtocols()
Gets the optional SSL enabled protocolsStringarray.- Returns:
Stringarray if set;nullotherwise.
-
setSSLEnabledProtocols
public void setSSLEnabledProtocols(java.lang.String[] aSslEnabledProtocols)
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
public java.lang.String[] getSSLEnabledCipherSuites()
Gets the optional SSL enabled cipher suitesStringarray.- Returns:
Stringarray if set;nullotherwise.
-
setSSLEnabledCipherSuites
public void setSSLEnabledCipherSuites(java.lang.String[] aSslEnabledCipherSuites)
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
public EPPSSLConfig 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
public void setSslConfig(EPPSSLConfig aSslConfig)
Sets theEPPSSLConfigthat's associated with thisEPPSSLContext.- Parameters:
aSslConfig- the SSL Config to set
-
-