Package org.openhab.action.openwebif.internal.impl.ssl

Examples of org.openhab.action.openwebif.internal.impl.ssl.SimpleTrustManager


        con.setRequestProperty("Authorization", basicAuth);
      }

      if (con instanceof HttpsURLConnection) {
        HttpsURLConnection sCon = (HttpsURLConnection) con;
        TrustManager[] trustManager = new TrustManager[] { new SimpleTrustManager() };
        SSLContext context = SSLContext.getInstance("TLS");
        context.init(new KeyManager[0], trustManager, new SecureRandom());
        sCon.setSSLSocketFactory(context.getSocketFactory());
        sCon.setHostnameVerifier(new AllowAllHostnameVerifier());
      }
View Full Code Here

TOP

Related Classes of org.openhab.action.openwebif.internal.impl.ssl.SimpleTrustManager

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.