Package RTL.SMQ

Class TrustAny

java.lang.Object
RTL.SMQ.TrustAny

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

    • TrustAny

      public TrustAny()
  • Method Details

    • cert

      public static TrustManager[] cert()
      Returns a TrustManager set that enables the SMQ client to accept any server certificate.
    • hostName

      public static HostnameVerifier hostName()
      Returns a HostnameVerifier that enables the SMQ client to accept any domain/hostname.