Class 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.
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      boolean verify​(java.lang.String serverName, java.security.cert.X509Certificate serverCertificate)  
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • DefaultHostnameVerifier

        public DefaultHostnameVerifier()
    • Method Detail

      • verify

        public boolean verify​(java.lang.String serverName,
                              java.security.cert.X509Certificate serverCertificate)
        Specified by:
        verify in interface HostnameVerifier