- java.lang.Object
-
- net.luminis.tls.engine.DefaultHostnameVerifier
-
- All Implemented Interfaces:
HostnameVerifier
public class DefaultHostnameVerifier extends java.lang.Object implements HostnameVerifier
A hostname verifier that requires that the server name equals the CN part of the certificate's subject DN, or matches one of the dnsName-type "Subject Alternative Name" entries of the certificate.
-
-
Constructor Summary
Constructors Constructor Description DefaultHostnameVerifier()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanverify(java.lang.String serverName, java.security.cert.X509Certificate serverCertificate)
-
-
-
Method Detail
-
verify
public boolean verify(java.lang.String serverName, java.security.cert.X509Certificate serverCertificate)- Specified by:
verifyin interfaceHostnameVerifier
-
-