Interface CertificateHostnameVerifier

  • All Known Implementing Classes:
    DefaultHostnameVerifier

    public interface CertificateHostnameVerifier
    Interface for verifying a hostname matching a certificate.
    Version:
    $Revision: 2231 $
    Author:
    Middleware Services
    • Method Summary

      All Methods Instance Methods Abstract Methods 
      Modifier and Type Method Description
      boolean verify​(java.lang.String hostname, java.security.cert.X509Certificate cert)
      Verify the supplied hostname matches the supplied certificate.
    • Method Detail

      • verify

        boolean verify​(java.lang.String hostname,
                       java.security.cert.X509Certificate cert)
        Verify the supplied hostname matches the supplied certificate.
        Parameters:
        hostname - to verify
        cert - to verify hostname against
        Returns:
        whether hostname is valid for the supplied certificate