Package org.mozilla.jss.crypto
Class KeyPairGeneratorSpi.Usage
- java.lang.Object
-
- org.mozilla.jss.crypto.KeyPairGeneratorSpi.Usage
-
- Enclosing class:
- KeyPairGeneratorSpi
public static final class KeyPairGeneratorSpi.Usage extends java.lang.Object
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.
-
-
Field Summary
Fields Modifier and Type Field Description static KeyPairGeneratorSpi.Usage
DECRYPT
static KeyPairGeneratorSpi.Usage
DERIVE
static KeyPairGeneratorSpi.Usage
ENCRYPT
static KeyPairGeneratorSpi.Usage
SIGN
static KeyPairGeneratorSpi.Usage
SIGN_RECOVER
static KeyPairGeneratorSpi.Usage
UNWRAP
static KeyPairGeneratorSpi.Usage
VERIFY
static KeyPairGeneratorSpi.Usage
VERIFY_RECOVER
static KeyPairGeneratorSpi.Usage
WRAP
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description int
getVal()
-
-
-
Field Detail
-
ENCRYPT
public static final KeyPairGeneratorSpi.Usage ENCRYPT
-
DECRYPT
public static final KeyPairGeneratorSpi.Usage DECRYPT
-
SIGN
public static final KeyPairGeneratorSpi.Usage SIGN
-
SIGN_RECOVER
public static final KeyPairGeneratorSpi.Usage SIGN_RECOVER
-
VERIFY
public static final KeyPairGeneratorSpi.Usage VERIFY
-
VERIFY_RECOVER
public static final KeyPairGeneratorSpi.Usage VERIFY_RECOVER
-
WRAP
public static final KeyPairGeneratorSpi.Usage WRAP
-
UNWRAP
public static final KeyPairGeneratorSpi.Usage UNWRAP
-
DERIVE
public static final KeyPairGeneratorSpi.Usage DERIVE
-
-