public static enum KeyPairGeneratorSpi.Usage extends java.lang.Enum<KeyPairGeneratorSpi.Usage>
Enum Constant and Description |
---|
DECRYPT |
DERIVE |
ENCRYPT |
SIGN |
SIGN_RECOVER |
UNWRAP |
VERIFY |
VERIFY_RECOVER |
WRAP |
Modifier and Type | Method and Description |
---|---|
int |
getVal()
Deprecated.
Use
ordinal() instead. |
long |
value()
Get PKCS #11 CKF_ value.
|
static KeyPairGeneratorSpi.Usage |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.
|
static KeyPairGeneratorSpi.Usage[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final KeyPairGeneratorSpi.Usage ENCRYPT
public static final KeyPairGeneratorSpi.Usage DECRYPT
public static final KeyPairGeneratorSpi.Usage SIGN
public static final KeyPairGeneratorSpi.Usage SIGN_RECOVER
public static final KeyPairGeneratorSpi.Usage VERIFY
public static final KeyPairGeneratorSpi.Usage VERIFY_RECOVER
public static final KeyPairGeneratorSpi.Usage WRAP
public static final KeyPairGeneratorSpi.Usage UNWRAP
public static final KeyPairGeneratorSpi.Usage DERIVE
public static KeyPairGeneratorSpi.Usage[] values()
for (KeyPairGeneratorSpi.Usage c : KeyPairGeneratorSpi.Usage.values()) System.out.println(c);
public static KeyPairGeneratorSpi.Usage valueOf(java.lang.String name)
name
- the name of the enum constant to be returned.java.lang.IllegalArgumentException
- if this enum type has no constant with the specified namejava.lang.NullPointerException
- if the argument is null@Deprecated public int getVal()
ordinal()
instead.public long value()