Class SSLBlindTrustManager

  • All Implemented Interfaces:
    SSLTrustManager

    public class SSLBlindTrustManager
    extends java.lang.Object
    implements SSLTrustManager
    Implementation of SSLTrustManager blindly trusting every certificate and every host.

    This class is intended to be used only during development phase. Since local development environments use self-signed certificates only. This implementation disables any X509 certificate validation and hostname validation.

    NOTE: DO NOT USE THIS IN PRODUCTION!!

    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      javax.net.ssl.HostnameVerifier getHostnameVerifier()
      Get the HostnameVerifier which checks if a hostname is allowed.
      javax.net.ssl.X509TrustManager getX509TrustManager()
      Get the X509TrustManager for SSL/TLS certificate authentication.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • SSLBlindTrustManager

        public SSLBlindTrustManager()
    • Method Detail

      • getX509TrustManager

        public javax.net.ssl.X509TrustManager getX509TrustManager()
        Description copied from interface: SSLTrustManager
        Get the X509TrustManager for SSL/TLS certificate authentication.
        Specified by:
        getX509TrustManager in interface SSLTrustManager
      • getHostnameVerifier

        public javax.net.ssl.HostnameVerifier getHostnameVerifier()
        Description copied from interface: SSLTrustManager
        Get the HostnameVerifier which checks if a hostname is allowed.
        Specified by:
        getHostnameVerifier in interface SSLTrustManager