|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.apache.http.conn.ssl.AbstractVerifier
HostnameVerifier
or
DefaultHostnameVerifier
.
@Deprecated public abstract class AbstractVerifier
Abstract base class for all standard X509HostnameVerifier
implementations.
Constructor Summary | |
---|---|
AbstractVerifier()
Deprecated. |
Method Summary | |
---|---|
static boolean |
acceptableCountryWildcard(String cn)
Deprecated. |
static int |
countDots(String s)
Deprecated. Counts the number of dots "." in a string. |
static String[] |
getCNs(X509Certificate cert)
Deprecated. |
static String[] |
getDNSSubjectAlts(X509Certificate cert)
Deprecated. Extracts the array of SubjectAlt DNS names from an X509Certificate. |
boolean |
verify(String host,
SSLSession session)
Deprecated. |
void |
verify(String host,
SSLSocket ssl)
Deprecated. Verifies that the host name is an acceptable match with the server's authentication scheme based on the given SSLSocket . |
void |
verify(String host,
String[] cns,
String[] subjectAlts,
boolean strictWithSubDomains)
Deprecated. |
void |
verify(String host,
X509Certificate cert)
Deprecated. Verifies that the host name is an acceptable match with the server's authentication scheme based on the given X509Certificate . |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Methods inherited from interface org.apache.http.conn.ssl.X509HostnameVerifier |
---|
verify |
Constructor Detail |
---|
public AbstractVerifier()
Method Detail |
---|
public final void verify(String host, SSLSocket ssl) throws IOException
X509HostnameVerifier
SSLSocket
.
verify
in interface X509HostnameVerifier
host
- the host.ssl
- the SSL socket.
IOException
- if an I/O error occurs or the verification process
fails.public final boolean verify(String host, SSLSession session)
verify
in interface HostnameVerifier
public final void verify(String host, X509Certificate cert) throws SSLException
X509HostnameVerifier
X509Certificate
.
verify
in interface X509HostnameVerifier
host
- the host.cert
- the certificate.
SSLException
- if the verification process fails.public final void verify(String host, String[] cns, String[] subjectAlts, boolean strictWithSubDomains) throws SSLException
SSLException
public static boolean acceptableCountryWildcard(String cn)
public static String[] getCNs(X509Certificate cert)
public static String[] getDNSSubjectAlts(X509Certificate cert)
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?).
cert
- X509Certificate
public static int countDots(String s)
s
- string to count dots from
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |