Package com.pnfsoftware.jeb.util.net
Class SecureSocketInfo
java.lang.Object
com.pnfsoftware.jeb.util.net.SecureSocketInfo
SSL information object, including the SSL context, X509 certificates manager, and hostname
verifier. This object may be used to customize a
Net instance.-
Constructor Summary
ConstructorsConstructorDescriptionSecureSocketInfo(SSLContext sslContext, X509TrustManager trustManager, HostnameVerifier hostnameVerifier) Create SSL customization information for aNetinstance. -
Method Summary
Modifier and TypeMethodDescriptionGet the optional hostname verifier.Get the SSL context.Get the optional X.509 trust manager.
-
Constructor Details
-
SecureSocketInfo
public SecureSocketInfo(SSLContext sslContext, X509TrustManager trustManager, HostnameVerifier hostnameVerifier) Create SSL customization information for aNetinstance.- Parameters:
sslContext- mandatorytrustManager- optionalhostnameVerifier- optional
-
-
Method Details
-
getSslContext
Get the SSL context.- Returns:
- the SSL context
-
getTrustManager
Get the optional X.509 trust manager.- Returns:
- the trust manager, or null
-
getHostnameVerifier
Get the optional hostname verifier.- Returns:
- the hostname verifier, or null
-