Package com.openshift.client.IHttpClient

Examples of com.openshift.client.IHttpClient.ISSLCertificateCallback


  @Test
  public void shouldSucceedHttpsSelfsignedCertificate() throws Throwable {
    IHttpClient client = new UrlConnectionHttpClientBuilder()
    .setAcceptMediaType(ACCEPT_APPLICATION_JSON)
    .setUserAgent("com.openshift.client.test")
    .setSSLCertificateCallback(new ISSLCertificateCallback() {
     
      @Override
      public boolean allowHostname(String hostname, SSLSession session) {
        return true;
      }
View Full Code Here


    expectedException.expect(new ExceptionCauseMatcher(instanceOf(SSLHandshakeException.class)));

    IHttpClient client = new UrlConnectionHttpClientBuilder()
    .setAcceptMediaType(ACCEPT_APPLICATION_JSON)
    .setUserAgent("com.openshift.client.test")
    .setSSLCertificateCallback(new ISSLCertificateCallback() {

      @Override
      public boolean allowHostname(String hostname, SSLSession session) {
        return true;
      }
View Full Code Here

TOP

Related Classes of com.openshift.client.IHttpClient.ISSLCertificateCallback

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.