Examples of BrowserCompatHostnameVerifier


Examples of org.apache.http.conn.ssl.BrowserCompatHostnameVerifier

      connectionManager = localConnectionManager;

      if (keystoreData != null)
      {
        keystoreManager = KeystoreManagerFactory.make("",keystoreData);
        SSLSocketFactory myFactory = new SSLSocketFactory(keystoreManager.getSecureSocketFactory(), new BrowserCompatHostnameVerifier());
        Scheme myHttpsProtocol = new Scheme("https", 443, myFactory);
        connectionManager.getSchemeRegistry().register(myHttpsProtocol);
      }

      fileBaseUrl = serverUrl + encodedServerLocation;
View Full Code Here

Examples of org.apache.http.conn.ssl.BrowserCompatHostnameVerifier

    // that way.
    PoolingClientConnectionManager localConnectionManager = new PoolingClientConnectionManager();
    localConnectionManager.setMaxTotal(1);
    if (mySSLFactory != null)
    {
      SSLSocketFactory myFactory = new SSLSocketFactory(mySSLFactory, new BrowserCompatHostnameVerifier());
      Scheme myHttpsProtocol = new Scheme("https", 443, myFactory);
      localConnectionManager.getSchemeRegistry().register(myHttpsProtocol);
    }
    connectionManager = localConnectionManager;
View Full Code Here

Examples of org.apache.http.conn.ssl.BrowserCompatHostnameVerifier

        // SSL context for secure connections can be created either based on
        // system or application specific properties.
        SSLContext sslcontext = SSLSocketFactory.createSystemSSLContext();
        // Use custom hostname verifier to customize SSL hostname verification.
        X509HostnameVerifier hostnameVerifier = new BrowserCompatHostnameVerifier();

        // Create a registry of custom connection socket factories for supported
        // protocol schemes.
        Registry<ConnectionSocketFactory> socketFactoryRegistry = RegistryBuilder.<ConnectionSocketFactory>create()
            .register("http", PlainSocketFactory.INSTANCE)
View Full Code Here

Examples of org.apache.http.conn.ssl.BrowserCompatHostnameVerifier

    public SSLLayeringStrategy(
            final KeyStore keystore,
            final String keystorePassword,
            final KeyStore truststore)
                throws NoSuchAlgorithmException, KeyManagementException, KeyStoreException, UnrecoverableKeyException {
        this(TLS, keystore, keystorePassword, truststore, null, null, new BrowserCompatHostnameVerifier());
    }
View Full Code Here

Examples of org.apache.http.conn.ssl.BrowserCompatHostnameVerifier

    public SSLLayeringStrategy(
            final KeyStore keystore,
            final String keystorePassword)
                throws NoSuchAlgorithmException, KeyManagementException, KeyStoreException, UnrecoverableKeyException{
        this(TLS, keystore, keystorePassword, null, null, null, new BrowserCompatHostnameVerifier());
    }
View Full Code Here

Examples of org.apache.http.conn.ssl.BrowserCompatHostnameVerifier

    }

    public SSLLayeringStrategy(
            final KeyStore truststore)
                throws NoSuchAlgorithmException, KeyManagementException, KeyStoreException, UnrecoverableKeyException {
        this(TLS, null, null, truststore, null, null, new BrowserCompatHostnameVerifier());
    }
View Full Code Here

Examples of org.apache.http.conn.ssl.BrowserCompatHostnameVerifier

    }

    public SSLLayeringStrategy(
            final TrustStrategy trustStrategy)
                throws NoSuchAlgorithmException, KeyManagementException, KeyStoreException, UnrecoverableKeyException {
        this(TLS, null, null, null, null, trustStrategy, new BrowserCompatHostnameVerifier());
    }
View Full Code Here

Examples of org.apache.http.conn.ssl.BrowserCompatHostnameVerifier

        this.sslContext = sslContext;
        this.hostnameVerifier = hostnameVerifier;
    }

    public SSLLayeringStrategy(final SSLContext sslContext) {
        this(sslContext, new BrowserCompatHostnameVerifier());
    }
View Full Code Here

Examples of org.apache.http.conn.ssl.BrowserCompatHostnameVerifier

        this.sslContext = sslContext;
        this.hostnameVerifier = hostnameVerifier;
    }

    public SSLIOSessionFactory(final SSLContext sslcontext) {
        this(sslcontext, new BrowserCompatHostnameVerifier());
    }
View Full Code Here

Examples of org.apache.http.conn.ssl.BrowserCompatHostnameVerifier

        }

        // perform host name verification
        try
        {
            BrowserCompatHostnameVerifier hostnameVerifier = new BrowserCompatHostnameVerifier();
            hostnameVerifier.verify( host, chain[0] );
        }
        catch ( SSLException ce )
        {
            failCauses.add( FailCause.HostnameVerificationFailed );
        }
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. 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.