Build 1.0_r1(from source)

android.net.http
Class DomainNameChecker

java.lang.Object
  extended by android.net.http.DomainNameChecker

public class DomainNameChecker
extends Object

Implements basic domain-name validation as specified by RFC2818.


Constructor Summary
DomainNameChecker()
           
 
Method Summary
static boolean match(X509Certificate certificate, String thisDomain)
          Checks the site certificate against the domain name of the site being visited
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DomainNameChecker

public DomainNameChecker()
Method Detail

match

public static boolean match(X509Certificate certificate,
                            String thisDomain)
Checks the site certificate against the domain name of the site being visited

Parameters:
certificate - The certificate to check
thisDomain - The domain name of the site being visited
Returns:
True iff if there is a domain match as specified by RFC2818

Build 1.0_r1(from source)

Please submit a feedback, bug or feature