| Modifier and Type | Field and Description |
|---|---|
| private static final int | |
| private static final int | |
| public static final OkHostnameVerifier | |
| private final boolean | |
| private static final Pattern | VERIFY_AS_IP_ADDRESS
Quick and dirty pattern to differentiate IP addresses from hostnames. |
| Access | Constructor and Description |
|---|---|
| private |
| Modifier and Type | Method and Description |
|---|---|
| public static List | |
| private static List | |
| public static OkHostnameVerifier | |
| public boolean | verify(X509Certificate[] certs, String host, SSLSession session)
Implements org. |
| public boolean | |
| pack-priv static boolean | |
| private boolean | verifyHostName(String hostName, X509Certificate certificate)
Returns true if |
| private boolean | verifyHostName(String
lower-case host name. hostName, String domain name pattern from certificate. May be a wildcard pattern such as
pattern)*.android.com.Returns |
| private boolean | verifyIpAddress(String ipAddress, X509Certificate certificate)
Returns true if |
| ALT_DNS_NAME | back to summary |
|---|---|
| private static final int ALT_DNS_NAME | |
| ALT_IPA_NAME | back to summary |
|---|---|
| private static final int ALT_IPA_NAME | |
| INSTANCE | back to summary |
|---|---|
| public static final OkHostnameVerifier INSTANCE | |
| strictWildcardMode | back to summary |
|---|---|
| private final boolean strictWildcardMode | |
| VERIFY_AS_IP_ADDRESS | back to summary |
|---|---|
| private static final Pattern VERIFY_AS_IP_ADDRESS Quick and dirty pattern to differentiate IP addresses from hostnames. This is an approximation of Android's private InetAddress#isNumeric API. This matches IPv6 addresses as a hex string containing at least one colon, and possibly including dots after the first colon. It matches IPv4 addresses as strings containing only decimal digits and dots. This pattern matches strings like "a:.23" and "54" that are neither IP addresses nor hostnames; they will be verified as IP addresses (which is a more strict verification). | |
| OkHostnameVerifier | back to summary |
|---|---|
| private OkHostnameVerifier(boolean strictWildcardMode) | |
| allSubjectAltNames | back to summary |
|---|---|
| public static List | |
| getSubjectAltNames | back to summary |
|---|---|
private static List
| |
| strictInstance | back to summary |
|---|---|
| public static OkHostnameVerifier strictInstance() | |
| verify | back to summary |
|---|---|
| public boolean verify(X509Certificate[] certs, String host, SSLSession session) Implements org. Doc from org. Returns whether the given hostname is allowable given the peer's authentication information from the given session.
| |
| verify | back to summary |
|---|---|
| public boolean verify(String host, X509Certificate certificate) | |
| verifyAsIpAddress | back to summary |
|---|---|
| pack-priv static boolean verifyAsIpAddress(String host) | |
| verifyHostName | back to summary |
|---|---|
| private boolean verifyHostName(String hostName, X509Certificate certificate) Returns true if
| |
| verifyHostName | back to summary |
|---|---|
| private boolean verifyHostName(String hostName, String pattern) Returns | |
| verifyIpAddress | back to summary |
|---|---|
| private boolean verifyIpAddress(String ipAddress, X509Certificate certificate) Returns true if | |