Package com.esri.arcgisruntime.security
Class SelfSignedCertificateException
- java.lang.Object
-
- java.lang.Throwable
-
- java.lang.Exception
-
- java.security.GeneralSecurityException
-
- java.security.cert.CertificateException
-
- com.esri.arcgisruntime.security.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 theAuthenticationChallengeHandler
, but can also be avoided by defining aSelfSignedCertificateListener
and callingAuthenticationManager.setSelfSignedCertificateListener(SelfSignedCertificateListener)
.- Since:
- 100.0.0
- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description SelfSignedCertificateException(String message, Throwable cause, X509Certificate cert)
Creates a SelfSignedCertificateException with the specified message, original CertificateException, and the certificate that caused it.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description X509Certificate
getCertificate()
Gets the self signed certificate that caused the exception in the first place.-
Methods inherited from class java.lang.Throwable
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
-
-
-
-
Constructor Detail
-
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 messagecause
- the original CertificateException that was throwncert
- the certificate that caused it
-
-
Method Detail
-
getCertificate
public X509Certificate getCertificate()
Gets the self signed certificate that caused the exception in the first place.- Returns:
- the self signed certificate
-
-