android.net.http
Class DomainNameChecker
java.lang.Object
android.net.http.DomainNameChecker
public class DomainNameChecker
- extends Object
Implements basic domain-name validation as specified by RFC2818.
|
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 |
DomainNameChecker
public DomainNameChecker()
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 checkthisDomain - The domain name of the site being visited
- Returns:
- True iff if there is a domain match as specified by RFC2818
Please submit a feedback, bug or feature