Class DisabledNameMismatchCallback

java.lang.Object
eu.emi.security.authn.x509.helpers.ssl.DisabledNameMismatchCallback
All Implemented Interfaces:
HostnameMismatchCallback2

public class DisabledNameMismatchCallback extends Object implements HostnameMismatchCallback2
  • Constructor Details

    • DisabledNameMismatchCallback

      public DisabledNameMismatchCallback()
  • Method Details

    • nameMismatch

      public void nameMismatch(X509Certificate peerCertificate, String hostName) throws CertificateException
      Description copied from interface: HostnameMismatchCallback2
      This method is called whenever peer's host name is not matching the peer's certificate DN. The method can log the problem/display a popup with a question what to do or simply can throw an exception indicating that the socket should be closed
      Specified by:
      nameMismatch in interface HostnameMismatchCallback2
      Parameters:
      peerCertificate - peer's certificate (for convenience)
      hostName - peer's host name (for convenience)
      Throws:
      CertificateException - if the error is considered fatal and the socket should be closed