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:
java.io.Serializable
public final class SelfSignedCertificateException extends java.security.cert.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(java.lang.String message, java.lang.Throwable cause, java.security.cert.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 java.security.cert.X509Certificate
getCertificate()
Gets the self signed certificate that caused the exception in the first place.
-
-
-
Constructor Detail
-
SelfSignedCertificateException
public SelfSignedCertificateException(java.lang.String message, java.lang.Throwable cause, java.security.cert.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
-
-