Package no.digipost.security.cert
Enum BasicConstraints.Type
- java.lang.Object
-
- java.lang.Enum<BasicConstraints.Type>
-
- no.digipost.security.cert.BasicConstraints.Type
-
- All Implemented Interfaces:
Serializable,Comparable<BasicConstraints.Type>
- Enclosing class:
- BasicConstraints
public static enum BasicConstraints.Type extends Enum<BasicConstraints.Type>
-
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static BasicConstraints.TypevalueOf(String name)Returns the enum constant of this type with the specified name.static BasicConstraints.Type[]values()Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
CA
public static final BasicConstraints.Type CA
Certificate Authority
-
NON_CA
public static final BasicConstraints.Type NON_CA
Not aCA, i.e. typically an end entity (EE) certificate
-
UNKNOWN
public static final BasicConstraints.Type UNKNOWN
The basic constraints extension could not be resolved, so it is unknown
-
-
Method Detail
-
values
public static BasicConstraints.Type[] 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 (BasicConstraints.Type c : BasicConstraints.Type.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static BasicConstraints.Type valueOf(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:
IllegalArgumentException- if this enum type has no constant with the specified nameNullPointerException- if the argument is null
-
-