Package org.xipki.security.pkcs11
Enum P11Slot.P11KeyUsage
- java.lang.Object
-
- java.lang.Enum<P11Slot.P11KeyUsage>
-
- org.xipki.security.pkcs11.P11Slot.P11KeyUsage
-
- All Implemented Interfaces:
Serializable,Comparable<P11Slot.P11KeyUsage>
- Enclosing class:
- P11Slot
public static enum P11Slot.P11KeyUsage extends Enum<P11Slot.P11KeyUsage>
-
-
Enum Constant Summary
Enum Constants Enum Constant Description DECRYPTDERIVESIGNSIGN_RECOVERUNWRAP
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static P11Slot.P11KeyUsagevalueOf(String name)Returns the enum constant of this type with the specified name.static P11Slot.P11KeyUsage[]values()Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
DECRYPT
public static final P11Slot.P11KeyUsage DECRYPT
-
DERIVE
public static final P11Slot.P11KeyUsage DERIVE
-
SIGN
public static final P11Slot.P11KeyUsage SIGN
-
SIGN_RECOVER
public static final P11Slot.P11KeyUsage SIGN_RECOVER
-
UNWRAP
public static final P11Slot.P11KeyUsage UNWRAP
-
-
Method Detail
-
values
public static P11Slot.P11KeyUsage[] 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 (P11Slot.P11KeyUsage c : P11Slot.P11KeyUsage.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static P11Slot.P11KeyUsage 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
-
-