Class 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
    • 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.
      • getChain

        public X509Certificate[] getChain()
        Returns the certificate chain received when this exception was generated.
        Returns:
        the certificate chain received when this exception was generated.