public class

ValidatorException

extends CertificateException
java.lang.Object
   ↳ java.lang.Throwable
     ↳ java.lang.Exception
       ↳ java.security.GeneralSecurityException
         ↳ java.security.cert.CertificateException
           ↳ sun.security.validator.ValidatorException

Class Overview

ValidatorException thrown by the Validator. It has optional fields that allow better error diagnostics.

Summary

Fields
public static final Object T_ALGORITHM_DISABLED
public static final Object T_CA_EXTENSIONS
public static final Object T_CERT_EXPIRED
public static final Object T_EE_EXTENSIONS
public static final Object T_NAME_CHAINING
public static final Object T_NO_TRUST_ANCHOR
public static final Object T_SIGNATURE_ERROR
Public Constructors
ValidatorException(String msg)
ValidatorException(String msg, Throwable cause)
ValidatorException(Object type)
ValidatorException(Object type, X509Certificate cert)
ValidatorException(Object type, X509Certificate cert, Throwable cause)
ValidatorException(String msg, Object type, X509Certificate cert)
ValidatorException(String msg, Object type, X509Certificate cert, Throwable cause)
Public Methods
X509Certificate getErrorCertificate()
Get the certificate causing the exception, if available.
Object getErrorType()
Get the type of the failure (one of the T_XXX constants), if available.
[Expand]
Inherited Methods
From class java.lang.Throwable
From class java.lang.Object

Fields

public static final Object T_ALGORITHM_DISABLED

public static final Object T_CA_EXTENSIONS

public static final Object T_CERT_EXPIRED

public static final Object T_EE_EXTENSIONS

public static final Object T_NAME_CHAINING

public static final Object T_NO_TRUST_ANCHOR

public static final Object T_SIGNATURE_ERROR

Public Constructors

public ValidatorException (String msg)

public ValidatorException (String msg, Throwable cause)

public ValidatorException (Object type)

public ValidatorException (Object type, X509Certificate cert)

public ValidatorException (Object type, X509Certificate cert, Throwable cause)

public ValidatorException (String msg, Object type, X509Certificate cert)

public ValidatorException (String msg, Object type, X509Certificate cert, Throwable cause)

Public Methods

public X509Certificate getErrorCertificate ()

Get the certificate causing the exception, if available.

public Object getErrorType ()

Get the type of the failure (one of the T_XXX constants), if available. This may be helpful when designing a user interface.