Deprecated
(4.4) use an implementation of javax. or
DefaultHostnameVerifier.
X509HostnameVerifier
implementations.
| Modifier and Type | Field and Description |
|---|---|
| pack-priv static final String[] | |
| private final Log |
| Access | Constructor and Description |
|---|---|
| public |
| Modifier and Type | Method and Description |
|---|---|
| public static boolean | |
| public static int | |
| public static String[] | |
| public static String[] | Returns: Array of SubjectALT DNS names stored in the certificate.X509Certificate cert)Extracts the array of SubjectAlt DNS names from an X509Certificate. |
| private static boolean | |
| private static boolean | |
| public final void | verify(final String
the host. host, final SSLSocket the SSL socket. ssl)Implements org. SSLSocket.
|
| public final boolean | verify(final String
the host name host, final SSLSession SSLSession used on the connection to host session)Implements javax. |
| public final void | verify(final String
the host. host, final X509Certificate the certificate. cert)Implements org. X509Certificate.
|
| public final void |
| BAD_COUNTRY_2LDS | back to summary |
|---|---|
| pack-priv static final String[] BAD_COUNTRY_2LDS | |
| log | back to summary |
|---|---|
| private final Log log | |
| AbstractVerifier | back to summary |
|---|---|
| public AbstractVerifier() | |
| acceptableCountryWildcard | back to summary |
|---|---|
| public static boolean acceptableCountryWildcard(final String cn) | |
| countDots | back to summary |
|---|---|
| public static int countDots(final String s) Counts the number of dots "." in a string.
| |
| getCNs | back to summary |
|---|---|
| public static String[] getCNs(final X509Certificate cert) | |
| getDNSSubjectAlts | back to summary |
|---|---|
| public static String[] getDNSSubjectAlts(final X509Certificate cert) Extracts the array of SubjectAlt DNS names from an X509Certificate. Returns null if there aren't any. Note Java doesn't appear able to extract international characters from the SubjectAlts. It can only extract international characters from the CN field. (Or maybe the version of OpenSSL I'm using to test isn't storing the international characters correctly in the SubjectAlts?).
| |
| matchIdentity | back to summary |
|---|---|
| private static boolean matchIdentity(final String host, final String identity, final boolean strict) | |
| validCountryWildcard | back to summary |
|---|---|
| private static boolean validCountryWildcard(final String[] parts) | |
| verify | back to summary |
|---|---|
| public final void verify(final String host, final SSLSocket ssl) throws IOException Implements org. Doc from org. Verifies that the host name is an acceptable match with the server's
authentication scheme based on the given
| |
| verify | back to summary |
|---|---|
| public final boolean verify(final String host, final SSLSession session) Implements javax. Doc from javax. Verify that the host name is an acceptable match with the server's authentication scheme.
| |
| verify | back to summary |
|---|---|
| public final void verify(final String host, final X509Certificate cert) throws SSLException Implements org. Doc from org. Verifies that the host name is an acceptable match with the server's
authentication scheme based on the given
| |
| verify | back to summary |
|---|---|
| public final void verify(final String host, final String[] cns, final String[] subjectAlts, final boolean strictWithSubDomains) throws SSLException | |