Package org.opends.admin.ads.util
Class OpendsCertificateException
- java.lang.Object
-
- java.lang.Throwable
-
- java.lang.Exception
-
- java.security.GeneralSecurityException
-
- java.security.cert.CertificateException
-
- org.opends.admin.ads.util.OpendsCertificateException
-
- All Implemented Interfaces:
Serializable
public class OpendsCertificateException extends CertificateException
When a remote client (dsconfig for instance) wants to establish a remote connection with opends server through a secure connection, and if the certificate is not known, the SSL handcheck fails and this exception is thrown. This allows to get the certificate chain which is unknown.- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description OpendsCertificateException(String msg, X509Certificate[] chain)Build a new OpendsCertificationException object.OpendsCertificateException(X509Certificate[] chain)Build a new OpendsCertificationException object.OpendsCertificateException(X509Certificate[] chain, CertificateException cause)Build a new OpendsCertificationException object.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description X509Certificate[]getChain()Return the certificate chain which is unknown and has caused the SSL handcheck failure.-
Methods inherited from class java.lang.Throwable
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
-
-
-
-
Constructor Detail
-
OpendsCertificateException
public OpendsCertificateException(X509Certificate[] chain)
Build a new OpendsCertificationException object.- Parameters:
chain- the certificate chain which is unknown and has caused the SSL handcheck failure.
-
OpendsCertificateException
public OpendsCertificateException(String msg, X509Certificate[] chain)
Build a new OpendsCertificationException object.- Parameters:
msg- the detail message string of this exception.chain- the certificate chain which is unknown and has caused the SSL handcheck failure.
-
OpendsCertificateException
public OpendsCertificateException(X509Certificate[] chain, CertificateException cause)
Build a new OpendsCertificationException object.- Parameters:
chain- the certificate chain which is unknown and has caused the SSL handcheck failure.cause- the cause
-
-
Method Detail
-
getChain
public X509Certificate[] getChain()
Return the certificate chain which is unknown and has caused the SSL handcheck failure.- Returns:
- the certificate chain which is unknown and has caused the SSL handcheck failure.
-
-