public class MechanismInfo
extends java.lang.Object
The structure is defined as follows:
typedef struct CK_MECHANISM_INFO {
CK_ULONG ulMinKeySize;
CK_ULONG ulMaxKeySize;
CK_FLAGS flags;
} CK_MECHANISM_INFO;
| Modifier and Type | Field and Description |
|---|---|
static long |
CKF_DECRYPT
Indicates the mechanism can be used to Decrypt.
|
static long |
CKF_DERIVE
Indicates the mechanism can be used to Derive keys.
|
static long |
CKF_DIGEST
Indicate the mechanism can be used to Digest.
|
static long |
CKF_ENCRYPT
Indicates the mechanism can be used to Encrypt.
|
static long |
CKF_EXTENSION
Indicates there is an extension to the flags.
|
static long |
CKF_GENERATE
Indicates the mechanism can be used to Generate keys.
|
static long |
CKF_GENERATE_KEY_PAIR
Indicates the mechanism can be used to Generate key pairs.
|
static long |
CKF_HW
Indicates the mechanism is performed by the device (otherwise it is
performed in software).
|
static long |
CKF_SIGN
Indicates the mechanism can be used to Sign.
|
static long |
CKF_SIGN_RECOVER
Indicates the mechanism can be used to Sign/Recover.
|
static long |
CKF_UNWRAP
Indicates the mechanism can be used to Unwrap keys.
|
static long |
CKF_VERIFY
Indicates the mechanism can be used to Verify.
|
static long |
CKF_VERIFY_RECOVER
Indicates the mechanism can be used to Verify/Recover.
|
static long |
CKF_WRAP
Indicates the mechanism can be used to Wrap keys.
|
| Modifier and Type | Method and Description |
|---|---|
long |
getFlags()
Returns the flags component.
|
long |
getMaxKeySize()
Returns the maximum key size component.
|
long |
getMinKeySize()
Returns the minimum key size component.
|
boolean |
isFlagSet(long flag)
Indicates if a given flag has been set.
|
java.lang.String |
toString()
Returns a
String representation of the
MechanismInfo object. |
java.lang.String |
toString(boolean flagNames)
Returns a String representation of the
MechanismInfo object. |
public static final long CKF_HW
public static final long CKF_ENCRYPT
public static final long CKF_DECRYPT
public static final long CKF_DIGEST
public static final long CKF_SIGN
public static final long CKF_SIGN_RECOVER
public static final long CKF_VERIFY
public static final long CKF_VERIFY_RECOVER
public static final long CKF_GENERATE
public static final long CKF_GENERATE_KEY_PAIR
public static final long CKF_WRAP
public static final long CKF_UNWRAP
public static final long CKF_DERIVE
public static final long CKF_EXTENSION
public long getMinKeySize()
public long getMaxKeySize()
public long getFlags()
public boolean isFlagSet(long flag)
flag - the flag being checkedtrue if the flag has been set; false
otherwisepublic java.lang.String toString()
String representation of the
MechanismInfo object.toString in class java.lang.ObjectString representation of the MechanismInfo
bjectpublic java.lang.String toString(boolean flagNames)
MechanismInfo object.flagNames - this indicates that the flags component should be represented as a list
of the flags that have been set; otherwise the actual flag value will
be returnedString representation of the MechanismInfo
object