Package org.xipki.ca.api.profile
Enum NotAfterMode
- java.lang.Object
-
- java.lang.Enum<NotAfterMode>
-
- org.xipki.ca.api.profile.NotAfterMode
-
- All Implemented Interfaces:
Serializable,Comparable<NotAfterMode>
public enum NotAfterMode extends Enum<NotAfterMode>
How CA assigns the notAfter field in the certificate if the requested notAfter is after CA's validity.- STRICT: the enrollment request will be rejected.
- CUTOFF: Use CA's notAfter.
- BY_CA: CA decides.
- Author:
- Lijun Liao (xipki)
-
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static NotAfterModeforName(String text)static NotAfterModevalueOf(String name)Returns the enum constant of this type with the specified name.static NotAfterMode[]values()Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
STRICT
public static final NotAfterMode STRICT
-
CUTOFF
public static final NotAfterMode CUTOFF
-
BY_CA
public static final NotAfterMode BY_CA
-
-
Method Detail
-
values
public static NotAfterMode[] 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 (NotAfterMode c : NotAfterMode.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static NotAfterMode 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
-
forName
public static NotAfterMode forName(String text)
-
-