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:
- java.io.Serializable
public class OpendsCertificateException
- extends java.security.cert.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 |
OpendsCertificateException(java.lang.String msg,
java.security.cert.X509Certificate[] chain)
Build a new OpendsCertificationException object. |
OpendsCertificateException(java.security.cert.X509Certificate[] chain)
Build a new OpendsCertificationException object. |
Method Summary |
java.security.cert.X509Certificate[] |
getChain()
Return the certificate chain which is unknown and has caused
the SSL handcheck failure. |
Methods inherited from class java.lang.Throwable |
fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
OpendsCertificateException
public OpendsCertificateException(java.security.cert.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(java.lang.String msg,
java.security.cert.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.
getChain
public java.security.cert.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.