Class SecureSocketInfo

java.lang.Object
com.pnfsoftware.jeb.util.net.SecureSocketInfo

public class SecureSocketInfo extends Object
SSL information object, including the SSL context, X509 certificates manager, and hostname verifier. This object may be used to customize a Net instance.
  • Constructor Details

    • SecureSocketInfo

      public SecureSocketInfo(SSLContext sslContext, X509TrustManager trustManager, HostnameVerifier hostnameVerifier)
      Create SSL customization information for a Net instance.
      Parameters:
      sslContext - mandatory
      trustManager - optional
      hostnameVerifier - optional
  • Method Details

    • getSslContext

      public SSLContext getSslContext()
      Get the SSL context.
      Returns:
      the SSL context
    • getTrustManager

      public X509TrustManager getTrustManager()
      Get the optional X.509 trust manager.
      Returns:
      the trust manager, or null
    • getHostnameVerifier

      public HostnameVerifier getHostnameVerifier()
      Get the optional hostname verifier.
      Returns:
      the hostname verifier, or null