Module com.esri.arcgisruntime
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
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 Summary
ConstructorDescriptionSelfSignedCertificateException
(String message, Throwable cause, X509Certificate cert) Creates a SelfSignedCertificateException with the specified message, original CertificateException, and the certificate that caused it. -
Method Summary
Modifier and TypeMethodDescriptionGets 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 Details
-
SelfSignedCertificateException
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 Details
-
getCertificate
Gets the self signed certificate that caused the exception in the first place.- Returns:
- the self signed certificate
-