org.opends.admin.ads.util
Class OpendsCertificateException

java.lang.Object
  extended by java.lang.Throwable
      extended by java.lang.Exception
          extended by java.security.GeneralSecurityException
              extended by java.security.cert.CertificateException
                  extended by 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
 

Constructor Detail

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.
Method Detail

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.