Package RTL.SMQ
Class TrustAny
java.lang.Object
RTL.SMQ.TrustAny
Utility class that provides a TrustManager and HostnameVerifier
that accepts any certificate and hostname. This class is typically
used during development and when connecting to a broker using a
self signed certificate.
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionstatic TrustManager[]
cert()
Returns a TrustManager set that enables the SMQ client to accept any server certificate.static HostnameVerifier
hostName()
Returns a HostnameVerifier that enables the SMQ client to accept any domain/hostname.
-
Constructor Details
-
TrustAny
public TrustAny()
-
-
Method Details
-
cert
Returns a TrustManager set that enables the SMQ client to accept any server certificate. -
hostName
Returns a HostnameVerifier that enables the SMQ client to accept any domain/hostname.
-