Package org.pgpainless.key.util
Enum RevocationAttributes.RevocationType
- java.lang.Object
-
- java.lang.Enum<RevocationAttributes.RevocationType>
-
- org.pgpainless.key.util.RevocationAttributes.RevocationType
-
- All Implemented Interfaces:
java.io.Serializable
,java.lang.Comparable<RevocationAttributes.RevocationType>
- Enclosing class:
- RevocationAttributes
public static enum RevocationAttributes.RevocationType extends java.lang.Enum<RevocationAttributes.RevocationType>
-
-
Enum Constant Summary
Enum Constants Enum Constant Description CERT_REVOCATION
KEY_REVOCATION
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static RevocationAttributes.RevocationType
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.static RevocationAttributes.RevocationType[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
KEY_REVOCATION
public static final RevocationAttributes.RevocationType KEY_REVOCATION
-
CERT_REVOCATION
public static final RevocationAttributes.RevocationType CERT_REVOCATION
-
-
Method Detail
-
values
public static RevocationAttributes.RevocationType[] 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 (RevocationAttributes.RevocationType c : RevocationAttributes.RevocationType.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static RevocationAttributes.RevocationType 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
-
-