Code example for StrictHostnameVerifier

0
     
    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 CLSSLSocketFactory DEFAULT_FACTORY = new CLSSLSocketFactory();
     
    /** 
     * Gets an singleton instance of the SSLProtocolSocketFactory. 
     * @return a SSLProtocolSocketFactory 
     */ 
    public static CLSSLSocketFactory getSocketFactory() { 
        return DEFAULT_FACTORY;
    } 
     
    private final SSLContext sslcontext;
Stop searching for code, let great code find you!  Add Codota to your java IDE