Android BrowserCompatHostnameVerifier - top ranked examples from Open Source projects

These code examples were ranked by Codota’s semantic indexing as the best open source examples for Android BrowserCompatHostnameVerifier class.

This code example shows how to use the following methods:
            TrustManager[] tms = new TrustManager[] { trustMgr };
                 
            SSLContext sslContext = SSLContext.getInstance("TLS");
            sslContext.init(null, tms, null);
                     
            mHostnameVerifier = new BrowserCompatHostnameVerifier();
            mAdvancedSslSocketFactory = new AdvancedSslSocketFactory(sslContext, trustMgr, mHostnameVerifier);
        } 
        return mAdvancedSslSocketFactory;
    } 
 
 
    private static String LOCAL_TRUSTSTORE_FILENAME = "knownServers.bks";
     
    private static String LOCAL_TRUSTSTORE_PASSWORD = "password";
 
    private static KeyStore mKnownServersStore = null;
     
    /** 
     * Returns the local store of reliable server certificates, explicitly accepted by the user. 
6
CodeRank
This code example shows how to use the following methods:
 
    public static final X509HostnameVerifier ALLOW_ALL_HOSTNAME_VERIFIER
        = new AllowAllHostnameVerifier();
 
    public static final X509HostnameVerifier BROWSER_COMPATIBLE_HOSTNAME_VERIFIER
        = new BrowserCompatHostnameVerifier();
 
    public static final X509HostnameVerifier STRICT_HOSTNAME_VERIFIER
        = new StrictHostnameVerifier();
    /** 
     * The factory using the default JVM settings for secure connections. 
     */ 
    private static final SSLSocketFactory DEFAULT_FACTORY = new SSLSocketFactory();
 
    /** 
     * Gets an singleton instance of the SSLProtocolSocketFactory. 
     * @return a SSLProtocolSocketFactory 
     */ 
    public static SSLSocketFactory getSocketFactory() { 
        return DEFAULT_FACTORY;
5
CodeRank
This code example shows how to use the following methods:
 
    public static final X509HostnameVerifier ALLOW_ALL_HOSTNAME_VERIFIER
        = new AllowAllHostnameVerifier();
 
    public static final X509HostnameVerifier BROWSER_COMPATIBLE_HOSTNAME_VERIFIER
        = new BrowserCompatHostnameVerifier();
 
    public static final X509HostnameVerifier STRICT_HOSTNAME_VERIFIER
        = new StrictHostnameVerifier();
 
    /** 
     * The default factory using the default JVM settings for secure connections. 
     */ 
    private static final SSLSocketFactory DEFAULT_FACTORY = new SSLSocketFactory();
 
    /** 
     * Gets the default factory, which uses the default JVM settings for secure 
     * connections. 
     * 
     * @return the default factory 
3
CodeRank
This code example shows how to use the following methods:
 
    public static final X509HostnameVerifier ALLOW_ALL_HOSTNAME_VERIFIER
        = new AllowAllHostnameVerifier();
 
    public static final X509HostnameVerifier BROWSER_COMPATIBLE_HOSTNAME_VERIFIER
        = new BrowserCompatHostnameVerifier();
 
    public static final X509HostnameVerifier STRICT_HOSTNAME_VERIFIER
        = new StrictHostnameVerifier();
 
    /** 
     * The default factory using the default JVM settings for secure connections. 
     */ 
    private static final SSLSocketFactory DEFAULT_FACTORY = new SSLSocketFactory();
 
    /** 
     * Gets the default factory, which uses the default JVM settings for secure 
     * connections. 
     * 
     * @return the default factory 
3
CodeRank
This code example shows how to use the following methods:
    protected HttpClientConfigurer httpClientConfigurer;
    protected HttpClientConnectionManager clientConnectionManager;
    protected HttpBinding httpBinding;
    protected HttpContext httpContext;
    protected SSLContextParameters sslContextParameters;
    protected X509HostnameVerifier x509HostnameVerifier = new BrowserCompatHostnameVerifier();
    protected CookieStore cookieStore;
 
    // options to the default created http connection manager 
    protected int maxTotalConnections = 200;
    protected int connectionsPerRoute = 20;
    // It's MILLISECONDS, the default value is always keep alive 
    protected long connectionTimeToLive = -1;
 
    /** 
     * Connects the URL specified on the endpoint to the specified processor. 
     * 
     * @param consumer the consumer 
     * @throws Exception can be thrown 
     */ 
3
CodeRank
This code example shows how to use the following methods:
     
    public static final X509HostnameVerifier ALLOW_ALL_HOSTNAME_VERIFIER 
        = new AllowAllHostnameVerifier();
     
    public static final X509HostnameVerifier BROWSER_COMPATIBLE_HOSTNAME_VERIFIER 
        = new BrowserCompatHostnameVerifier();
     
    public static final X509HostnameVerifier STRICT_HOSTNAME_VERIFIER 
        = new StrictHostnameVerifier();
 
    /** 
     * The default factory using the default JVM settings for secure connections. 
     */ 
    private static final RogerSSLSocketFactory DEFAULT_FACTORY = new RogerSSLSocketFactory();
     
    /** 
     * Gets the default factory, which uses the default JVM settings for secure  
     * connections. 
     *  
     * @return the default factory 
3
CodeRank
This code example shows how to use the following methods:
     
    public static final X509HostnameVerifier ALLOW_ALL_HOSTNAME_VERIFIER 
        = new AllowAllHostnameVerifier();
     
    public static final X509HostnameVerifier BROWSER_COMPATIBLE_HOSTNAME_VERIFIER 
        = new BrowserCompatHostnameVerifier();
     
    public static final X509HostnameVerifier STRICT_HOSTNAME_VERIFIER 
        = new StrictHostnameVerifier();
    /** 
     * The factory using the default JVM settings for secure connections. 
     */ 
    private static final AndroidSSLSocketFactory DEFAULT_FACTORY = new AndroidSSLSocketFactory();
     
    /** 
     * Gets an singleton instance of the SSLProtocolSocketFactory. 
     * @return a SSLProtocolSocketFactory 
     */ 
    public static AndroidSSLSocketFactory getSocketFactory() { 
        return DEFAULT_FACTORY;
3
CodeRank
This code example shows how to use the following methods:
 
    public static final X509HostnameVerifier ALLOW_ALL_HOSTNAME_VERIFIER
        = new AllowAllHostnameVerifier();
 
    public static final X509HostnameVerifier BROWSER_COMPATIBLE_HOSTNAME_VERIFIER
        = new BrowserCompatHostnameVerifier();
 
    public static final X509HostnameVerifier STRICT_HOSTNAME_VERIFIER
        = new StrictHostnameVerifier();
    /** 
     * The factory using the default JVM settings for secure connections. 
     */ 
    private static final SSLSocketFactory DEFAULT_FACTORY = new SSLSocketFactory();
 
    /** 
     * Gets an singleton instance of the SSLProtocolSocketFactory. 
     * @return a SSLProtocolSocketFactory 
     */ 
    public static SSLSocketFactory getSocketFactory() { 
        return DEFAULT_FACTORY;
4
CodeRank
This code example shows how to use the following methods:
     
    public static final X509HostnameVerifier ALLOW_ALL_HOSTNAME_VERIFIER 
        = new AllowAllHostnameVerifier();
     
    public static final X509HostnameVerifier BROWSER_COMPATIBLE_HOSTNAME_VERIFIER 
        = new BrowserCompatHostnameVerifier();
     
    public static final X509HostnameVerifier STRICT_HOSTNAME_VERIFIER 
        = new StrictHostnameVerifier();
    /** 
     * The factory using the default JVM settings for secure connections. 
     */ 
    private static final SSLSocketFactory DEFAULT_FACTORY = new SSLSocketFactory();
     
    /** 
     * Gets an singleton instance of the SSLProtocolSocketFactory. 
     * @return a SSLProtocolSocketFactory 
     */ 
    public static SSLSocketFactory getSocketFactory() { 
        return DEFAULT_FACTORY;
3
CodeRank
This code example shows how to use the following methods:
     
    public static final X509HostnameVerifier ALLOW_ALL_HOSTNAME_VERIFIER 
        = new AllowAllHostnameVerifier();
     
    public static final X509HostnameVerifier BROWSER_COMPATIBLE_HOSTNAME_VERIFIER 
        = new BrowserCompatHostnameVerifier();
     
    public static final X509HostnameVerifier STRICT_HOSTNAME_VERIFIER 
        = new StrictHostnameVerifier();
    /** 
     * The factory using the default JVM settings for secure connections. 
     */ 
    private static final SSLSocketFactory DEFAULT_FACTORY = new SSLSocketFactory();
     
    /** 
     * Gets an singleton instance of the SSLProtocolSocketFactory. 
     * @return a SSLProtocolSocketFactory 
     */ 
    public static SSLSocketFactory getSocketFactory() { 
        return DEFAULT_FACTORY;
4
CodeRank
See Code Examples for Android BrowserCompatHostnameVerifier Methods: