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