Package net.i2p.apache.http.conn.ssl
Class DefaultHostnameVerifier
java.lang.Object
net.i2p.apache.http.conn.ssl.DefaultHostnameVerifier
- All Implemented Interfaces:
HostnameVerifier
Default
HostnameVerifier
implementation.- Since:
- 4.4
-
Field Summary
Modifier and TypeFieldDescription(package private) static final int
(package private) static final int
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescription(package private) static String
extractSubjectAlts
(X509Certificate cert, int subjectType) (package private) static void
matchCN
(String host, String cn, PublicSuffixMatcher publicSuffixMatcher) (package private) static void
matchDNSName
(String host, List<String> subjectAlts, PublicSuffixMatcher publicSuffixMatcher) (package private) static boolean
matchDomainRoot
(String host, String domainRoot) (package private) static boolean
matchIdentity
(String host, String identity) (package private) static boolean
matchIdentity
(String host, String identity, PublicSuffixMatcher publicSuffixMatcher) (package private) static boolean
matchIdentityStrict
(String host, String identity) (package private) static boolean
matchIdentityStrict
(String host, String identity, PublicSuffixMatcher publicSuffixMatcher) (package private) static void
matchIPAddress
(String host, List<String> subjectAlts) (package private) static void
matchIPv6Address
(String host, List<String> subjectAlts) (package private) static String
normaliseAddress
(String hostname) final void
verify
(String host, X509Certificate cert) final boolean
verify
(String host, SSLSession session)
-
Field Details
-
DNS_NAME_TYPE
static final int DNS_NAME_TYPE- See Also:
-
IP_ADDRESS_TYPE
static final int IP_ADDRESS_TYPE- See Also:
-
-
Constructor Details
-
DefaultHostnameVerifier
-
DefaultHostnameVerifier
public DefaultHostnameVerifier()
-
-
Method Details
-
verify
- Specified by:
verify
in interfaceHostnameVerifier
-
verify
- Throws:
SSLException
-
matchIPAddress
- Throws:
SSLException
-
matchIPv6Address
- Throws:
SSLException
-
matchDNSName
static void matchDNSName(String host, List<String> subjectAlts, PublicSuffixMatcher publicSuffixMatcher) throws SSLException - Throws:
SSLException
-
matchCN
static void matchCN(String host, String cn, PublicSuffixMatcher publicSuffixMatcher) throws SSLException - Throws:
SSLException
-
matchDomainRoot
-
matchIdentity
-
matchIdentity
-
matchIdentityStrict
static boolean matchIdentityStrict(String host, String identity, PublicSuffixMatcher publicSuffixMatcher) -
matchIdentityStrict
-
extractCN
- Throws:
SSLException
-
extractSubjectAlts
-
normaliseAddress
-