Class SelfSignedCertificateException

All Implemented Interfaces:
Serializable

public final class SelfSignedCertificateException extends CertificateException
Represents an exception caused by requesting resources from a service with a self signed SSL certificate. The exception contains the self signed certificate that caused the exception, as well as the original message and CertificateException. By default, SelfSignedCertificateExceptions are handled by the AuthenticationChallengeHandler, but can also be avoided by defining a SelfSignedCertificateListener and calling AuthenticationManager.setSelfSignedCertificateListener(SelfSignedCertificateListener).
Since:
100.0.0
See Also:
  • Constructor Details

    • SelfSignedCertificateException

      public SelfSignedCertificateException(String message, Throwable cause, X509Certificate cert)
      Creates a SelfSignedCertificateException with the specified message, original CertificateException, and the certificate that caused it.
      Parameters:
      message - the exception message
      cause - the original CertificateException that was thrown
      cert - the certificate that caused it
  • Method Details

    • getCertificate

      public X509Certificate getCertificate()
      Gets the self signed certificate that caused the exception in the first place.
      Returns:
      the self signed certificate