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

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


        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());
      }
      StringWriter sw = new StringWriter();
      IOUtils.copy(con.getInputStream(), sw);
      con.disconnect();
View Full Code Here

TOP

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

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.