Class EPPSSLContext

java.lang.Object
com.verisign.epp.transport.client.EPPSSLContext

public class EPPSSLContext extends Object
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 Details

    • EPPSSLContext

      public EPPSSLContext()
      Default constructor.
    • EPPSSLContext

      public EPPSSLContext(EPPSSLConfig aSSLConfig)
      Creates an instance of EPPSSLContext that takes an EPPSSLConfig.
      Parameters:
      aSSLConfig - EPPSSLConfig instance
    • EPPSSLContext

      public EPPSSLContext(SSLContext aSSLContext)
      Creates an instance of EPPSSLContext with an SSLContext.
      Parameters:
      aSSLContext - SSLContext instance
    • EPPSSLContext

      public EPPSSLContext(SSLContext aSSLContext, String[] aSslEnabledProtocols, String[] aSslEnabledCipherSuites)
      Creates an instance of EPPSSLContext with the SSLContext, SSL enabled protocols, and SSL enabled cipher suites.
      Parameters:
      aSSLContext - SSLContext instance
      aSslEnabledProtocols - String array of enabled SSL protocols
      aSslEnabledCipherSuites - String array of enabled SSL cipher suites
  • Method Details

    • getSSLContext

      public SSLContext getSSLContext()
      Gets the SSLContext.
      Returns:
      SSLContext instance
    • setSSLContext

      public void setSSLContext(SSLContext aSSLContext)
      Sets the SSLContext.
      Parameters:
      aSSLContext - SSLContext to set
    • hasSSLContext

      public boolean hasSSLContext()
      Checks whether SSLContext has been set.
      Returns:
      true if set; false otherwise.
    • getSSLSocketFactory

      public SSLSocketFactory getSSLSocketFactory()
      Gets the SSLSocketFactory.
      Returns:
      SSLSocketFactory instance
    • setSSLSocketFactory

      public void setSSLSocketFactory(SSLSocketFactory aSSLSocketFactory)
      Sets the SSLSocketFactory, which should be the SocketFactory of the SSLContext attribute.
      Parameters:
      aSSLSocketFactory - SSLSocketFactory instance
    • hasSSLSocketFactory

      public boolean hasSSLSocketFactory()
      Checks whether SSLSocketFactory has been set.
      Returns:
      true if set; false otherwise.
    • getSSLEnabledProtocols

      public String[] getSSLEnabledProtocols()
      Gets the optional SSL enabled protocols String array.
      Returns:
      String array if set; null otherwise.
    • setSSLEnabledProtocols

      public void setSSLEnabledProtocols(String[] aSslEnabledProtocols)
      Sets the optional SSL enabled protocols String 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 String[] getSSLEnabledCipherSuites()
      Gets the optional SSL enabled cipher suites String array.
      Returns:
      String array if set; null otherwise.
    • setSSLEnabledCipherSuites

      public void setSSLEnabledCipherSuites(String[] aSslEnabledCipherSuites)
      Sets the optional SSL enabled cipher suites String 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.
    • getSslConfig

      public EPPSSLConfig getSslConfig()
      Gets the EPPSSLConfig that's associated with this EPPSSLContext. The SSL configuration may be null, since an instantiated SSLContext could have been used.
      Returns:
      the sslConfig EPPSSLConfig if defined; null otherwise.
    • setSslConfig

      public void setSslConfig(EPPSSLConfig aSslConfig)
      Sets the EPPSSLConfig that's associated with this EPPSSLContext.
      Parameters:
      aSslConfig - the SSL Config to set