BrowserCompatHostnameVerifier
  public
  
  
  
  class
  BrowserCompatHostnameVerifier
  
  
  
  
    extends AbstractVerifier
  
  
  
  
  
  
| java.lang.Object | ||
| ↳ | org.apache.http.conn.ssl.AbstractVerifier | |
| ↳ | org.apache.http.conn.ssl.BrowserCompatHostnameVerifier | |
      This class was deprecated
      in API level 22.
    Please use URL.openConnection() instead.
     Please visit this webpage
     for further details.
  
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".Summary
Public constructors | |
|---|---|
      
      BrowserCompatHostnameVerifier()
      
      
     | 
  |
Public methods | |
|---|---|
        
        
        
        final
        
        String
     | 
  
    
      
      toString()
      
      
        Returns a string representation of the object.  | 
  
        
        
        
        final
        
        void
     | 
  
    
      
      verify(String host, String[] cns, String[] subjectAlts)
      
      
     | 
  
Inherited methods | |
|---|---|
Public constructors
BrowserCompatHostnameVerifier
public BrowserCompatHostnameVerifier ()
Public methods
toString
    Added in API level 1
  
      
  
    public final String toString ()
Returns a string representation of the object.
| Returns | |
|---|---|
String | 
        a string representation of the object. | 
verify
    Added in API level 1
  
      
  
    public final void verify (String host, String[] cns, String[] subjectAlts)
| Parameters | |
|---|---|
host | 
        
          String  | 
      
cns | 
        
          String  | 
      
subjectAlts | 
        
          String  | 
      
| Throws | |
|---|---|
SSLException | 
          |