Class AcceptAllCertificatesSSLContext

  • All Implemented Interfaces:
    SSLContextProvider

    @Deprecated
    public class AcceptAllCertificatesSSLContext
    extends Object
    implements SSLContextProvider
    Deprecated.
    This SSLContextProvider returns an SSLContext that accepts all connections and doesn't perform any certificate validations. This implementation forces a TLS v1.2 SSLContext instance.
    Author:
    David Graeff - Initial contribution
    • Constructor Detail

      • AcceptAllCertificatesSSLContext

        public AcceptAllCertificatesSSLContext()
        Deprecated.
    • Method Detail

      • getContext

        public SSLContext getContext()
                              throws org.osgi.service.cm.ConfigurationException
        Deprecated.
        Description copied from interface: SSLContextProvider
        Return an SSLContext to be used by secure Mqtt broker connections. Never return null here. If you are not able to create an SSLContext instance, fail with a ConfigurationException instead.
        Specified by:
        getContext in interface SSLContextProvider
        Throws:
        org.osgi.service.cm.ConfigurationException