Package org.mozilla.jss.crypto
Enum Class KeyPairGeneratorSpi.Usage
- All Implemented Interfaces:
Serializable
,Comparable<KeyPairGeneratorSpi.Usage>
,Constable
- Enclosing class:
KeyPairGeneratorSpi
In PKCS #11, each keypair can be marked with the operations it will
be used to perform. Some tokens require that a key be marked for
an operation before the key can be used to perform that operation;
other tokens don't care. NSS provides a way to specify a set of
flags and a corresponding mask for these flags. If a specific usage
is desired set the value for that usage. If it is not set, let NSS
behave in it's default fashion. If a behavior is desired, also set
that behavior in the mask as well as the flags.
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>>
-
Enum Constant Summary
Enum ConstantsEnum ConstantDescription -
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionint
getVal()
Deprecated.long
value()
Get PKCS #11 CKF_ value.static KeyPairGeneratorSpi.Usage
Returns the enum constant of this class with the specified name.static KeyPairGeneratorSpi.Usage[]
values()
Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
ENCRYPT
-
DECRYPT
-
SIGN
-
SIGN_RECOVER
-
VERIFY
-
VERIFY_RECOVER
-
WRAP
-
UNWRAP
-
DERIVE
-
-
Field Details
-
value
private final long value
-
-
Constructor Details
-
Usage
private Usage(long value)
-
-
Method Details
-
values
Returns an array containing the constants of this enum class, in the order they are declared.- Returns:
- an array containing the constants of this enum class, in the order they are declared
-
valueOf
Returns the enum constant of this class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (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 class has no constant with the specified nameNullPointerException
- if the argument is null
-
getVal
Deprecated.Useordinal()
instead. -
value
public long value()Get PKCS #11 CKF_ value.
-
ordinal()
instead.