Package org.apache.http.conn.ssl
Class DefaultHostnameVerifier
java.lang.Object
org.apache.http.conn.ssl.DefaultHostnameVerifier
- All Implemented Interfaces:
HostnameVerifier
@Contract(threading=IMMUTABLE_CONDITIONAL)
public final class DefaultHostnameVerifier
extends Object
implements HostnameVerifier
Default
HostnameVerifier implementation.- Since:
- 4.4
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescription(package private) static enum -
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final org.apache.commons.logging.Logprivate final PublicSuffixMatcher -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescription(package private) static DefaultHostnameVerifier.HostNameTypedetermineHostFormat(String host) (package private) static String(package private) static List<SubjectName>(package private) static voidmatchCN(String host, String cn, PublicSuffixMatcher publicSuffixMatcher) (package private) static voidmatchDNSName(String host, List<SubjectName> subjectAlts, PublicSuffixMatcher publicSuffixMatcher) (package private) static booleanmatchDomainRoot(String host, String domainRoot) (package private) static booleanmatchIdentity(String host, String identity) (package private) static booleanmatchIdentity(String host, String identity, PublicSuffixMatcher publicSuffixMatcher) (package private) static booleanmatchIdentity(String host, String identity, PublicSuffixMatcher publicSuffixMatcher, DomainType domainType) private static booleanmatchIdentity(String host, String identity, PublicSuffixMatcher publicSuffixMatcher, DomainType domainType, boolean strict) (package private) static booleanmatchIdentityStrict(String host, String identity) (package private) static booleanmatchIdentityStrict(String host, String identity, PublicSuffixMatcher publicSuffixMatcher) (package private) static booleanmatchIdentityStrict(String host, String identity, PublicSuffixMatcher publicSuffixMatcher, DomainType domainType) (package private) static voidmatchIPAddress(String host, List<SubjectName> subjectAlts) (package private) static voidmatchIPv6Address(String host, List<SubjectName> subjectAlts) (package private) static StringnormaliseAddress(String hostname) voidverify(String host, X509Certificate cert) booleanverify(String host, SSLSession session)
-
Field Details
-
log
private final org.apache.commons.logging.Log log -
publicSuffixMatcher
-
-
Constructor Details
-
DefaultHostnameVerifier
-
DefaultHostnameVerifier
public DefaultHostnameVerifier()
-
-
Method Details
-
verify
- Specified by:
verifyin interfaceHostnameVerifier
-
verify
- Throws:
SSLException
-
matchIPAddress
- Throws:
SSLException
-
matchIPv6Address
- Throws:
SSLException
-
matchDNSName
static void matchDNSName(String host, List<SubjectName> subjectAlts, PublicSuffixMatcher publicSuffixMatcher) throws SSLException - Throws:
SSLException
-
matchCN
static void matchCN(String host, String cn, PublicSuffixMatcher publicSuffixMatcher) throws SSLException - Throws:
SSLException
-
matchDomainRoot
-
matchIdentity
private static boolean matchIdentity(String host, String identity, PublicSuffixMatcher publicSuffixMatcher, DomainType domainType, boolean strict) -
matchIdentity
-
matchIdentity
-
matchIdentityStrict
static boolean matchIdentityStrict(String host, String identity, PublicSuffixMatcher publicSuffixMatcher) -
matchIdentityStrict
-
matchIdentity
static boolean matchIdentity(String host, String identity, PublicSuffixMatcher publicSuffixMatcher, DomainType domainType) -
matchIdentityStrict
static boolean matchIdentityStrict(String host, String identity, PublicSuffixMatcher publicSuffixMatcher, DomainType domainType) -
extractCN
- Throws:
SSLException
-
determineHostFormat
-
getSubjectAltNames
-
normaliseAddress
-