FileDocCategorySizeDatePackage
BrowserCompatHostnameVerifier.javaAPI DocAndroid 1.5 API2338Wed May 06 22:41:10 BST 2009org.apache.http.conn.ssl

BrowserCompatHostnameVerifier

public class BrowserCompatHostnameVerifier extends AbstractVerifier
The HostnameVerifier that works the same way as Curl and Firefox.

The hostname must match either the first CN, or any of the subject-alts. A wildcard can occur in the CN, and in any of the subject-alts.

The only difference between BROWSER_COMPATIBLE and STRICT is that a wildcard (such as "*.foo.com") with BROWSER_COMPATIBLE matches all subdomains, including "a.b.foo.com".

author
Julius Davies

Fields Summary
Constructors Summary
Methods Summary
public final java.lang.StringtoString()

 
        return "BROWSER_COMPATIBLE"; 
    
public final voidverify(java.lang.String host, java.lang.String[] cns, java.lang.String[] subjectAlts)

        verify(host, cns, subjectAlts, false);