Package org.opends.quicksetup
Class UserDataCertificateException
- java.lang.Object
-
- java.lang.Throwable
-
- java.lang.Exception
-
- org.opends.server.types.OpenDsException
-
- org.opends.quicksetup.UserDataException
-
- org.opends.quicksetup.UserDataCertificateException
-
- All Implemented Interfaces:
Serializable,org.forgerock.i18n.LocalizableException
public class UserDataCertificateException extends UserDataException
This exception is used when there is a certificate issue and the user must be asked to accept it or not. It will be thrown by the class that is in charge of validating the user data (the Application class).- See Also:
- Serialized Form
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classUserDataCertificateException.TypeThe enumeration for the different types of the exception.
-
Constructor Summary
Constructors Constructor Description UserDataCertificateException(WizardStep step, org.forgerock.i18n.LocalizableMessage message, Throwable t, String host, int port, X509Certificate[] chain, String authType, UserDataCertificateException.Type type)Constructor for UserDataCertificateException.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description StringgetAuthType()Returns the auth type used when this certificate exception occurred.X509Certificate[]getChain()Returns the certificate chain received when this exception was generated.StringgetHost()Returns the host we tried to connect to when this exception was generated.intgetPort()Returns the port we tried to connect to when this exception was generated.UserDataCertificateException.TypegetType()Returns the type of exception.-
Methods inherited from class org.opends.quicksetup.UserDataException
getStep
-
Methods inherited from class org.opends.server.types.OpenDsException
getMessageObject
-
Methods inherited from class java.lang.Throwable
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
-
-
-
-
Constructor Detail
-
UserDataCertificateException
public UserDataCertificateException(WizardStep step, org.forgerock.i18n.LocalizableMessage message, Throwable t, String host, int port, X509Certificate[] chain, String authType, UserDataCertificateException.Type type)
Constructor for UserDataCertificateException.- Parameters:
step- the step in the wizard where the exception occurred.message- describing the error.t- the root cause for this exception.host- the host we tried to connect to.port- the port we tried to connect to.chain- the certificate chain.authType- the authentication type.type- the type of the exception.
-
-
Method Detail
-
getHost
public String getHost()
Returns the host we tried to connect to when this exception was generated.- Returns:
- the host we tried to connect to when this exception was generated.
-
getPort
public int getPort()
Returns the port we tried to connect to when this exception was generated.- Returns:
- the port we tried to connect to when this exception was generated.
-
getAuthType
public String getAuthType()
Returns the auth type used when this certificate exception occurred.- Returns:
- the auth type used when this certificate exception occurred.
-
getType
public UserDataCertificateException.Type getType()
Returns the type of exception.- Returns:
- the type of exception.
-
getChain
public X509Certificate[] getChain()
Returns the certificate chain received when this exception was generated.- Returns:
- the certificate chain received when this exception was generated.
-
-