Package eu.emi.security.authn.x509
Enum ValidationErrorCategory
- java.lang.Object
-
- java.lang.Enum<ValidationErrorCategory>
-
- eu.emi.security.authn.x509.ValidationErrorCategory
-
- All Implemented Interfaces:
java.io.Serializable,java.lang.Comparable<ValidationErrorCategory>
public enum ValidationErrorCategory extends java.lang.Enum<ValidationErrorCategory>
This enumeration contains general classes of errors that can be signaled during certificate path validation. This classification is provided to allow applications to have coarse grained error handling.- Author:
- K. Benedyczak
-
-
Enum Constant Summary
Enum Constants Enum Constant Description CRLGENERAL_INPUTINCONSISTENT_PROXY_CHAININVALID_PROXY_CERTNAME_CONSTRAINTNAMESPACEOCSPOTHERPOLICYX509_BASICX509_CHAIN
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static ValidationErrorCategorygetErrorCategory(ValidationErrorCode code)static ValidationErrorCategoryvalueOf(java.lang.String name)Returns the enum constant of this type with the specified name.static ValidationErrorCategory[]values()Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
GENERAL_INPUT
public static final ValidationErrorCategory GENERAL_INPUT
-
INCONSISTENT_PROXY_CHAIN
public static final ValidationErrorCategory INCONSISTENT_PROXY_CHAIN
-
INVALID_PROXY_CERT
public static final ValidationErrorCategory INVALID_PROXY_CERT
-
NAMESPACE
public static final ValidationErrorCategory NAMESPACE
-
X509_BASIC
public static final ValidationErrorCategory X509_BASIC
-
X509_CHAIN
public static final ValidationErrorCategory X509_CHAIN
-
POLICY
public static final ValidationErrorCategory POLICY
-
NAME_CONSTRAINT
public static final ValidationErrorCategory NAME_CONSTRAINT
-
CRL
public static final ValidationErrorCategory CRL
-
OCSP
public static final ValidationErrorCategory OCSP
-
OTHER
public static final ValidationErrorCategory OTHER
-
-
Method Detail
-
values
public static ValidationErrorCategory[] values()
Returns an array containing the constants of this enum type, in the order they are declared. This method may be used to iterate over the constants as follows:for (ValidationErrorCategory c : ValidationErrorCategory.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static ValidationErrorCategory valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)- Parameters:
name- the name of the enum constant to be returned.- Returns:
- the enum constant with the specified name
- Throws:
java.lang.IllegalArgumentException- if this enum type has no constant with the specified namejava.lang.NullPointerException- if the argument is null
-
getErrorCategory
public static ValidationErrorCategory getErrorCategory(ValidationErrorCode code)
-
-