public class CryptokiObject
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
static int |
CKO_CERTIFICATE |
static int |
CKO_DATA |
static int |
CKO_DOMAIN_PARAMETERS |
static int |
CKO_HW_FEATURE |
static int |
CKO_MECHANISM |
static int |
CKO_OTP_KEY |
static int |
CKO_PRIVATE_KEY |
static int |
CKO_PUBLIC_KEY |
static int |
CKO_SECRET_KEY |
static int |
ERACOM_PTK_ADAPTER |
static int |
ERACOM_PTK_CERTIFICATE_REQUEST |
static int |
ERACOM_PTK_CRL |
static int |
ERACOM_PTK_FM |
static int |
ERACOM_PTK_SLOT |
Modifier and Type | Method and Description |
---|---|
static java.lang.String |
classToString(long cko)
Convert class constant value to name.
|
CryptokiObject |
Copy(java.util.ArrayList<CryptokiAttribute> attList)
Copies this object, creating a new object for the copy
The template may specify new values for any attributes of the object that can ordinarily
be modified (e.g., in the course of copying a secret key, a key’s CKA_EXTRACTABLE
attribute may be changed from CK_TRUE to CK_FALSE, but not the other way around.
|
CryptokiAttributes |
getAttributes()
Gets the attributes set.
|
java.lang.String |
getClassName()
Gets the name of this PKCS#11 object's class.
|
long |
getHandle()
Handle to this object inside native cryptoki
|
long |
getObjectClass()
Class of this object
|
int |
getSize()
Size in bytes of this object.
|
public static final int CKO_DATA
public static final int CKO_CERTIFICATE
public static final int CKO_PUBLIC_KEY
public static final int CKO_PRIVATE_KEY
public static final int CKO_SECRET_KEY
public static final int CKO_HW_FEATURE
public static final int CKO_DOMAIN_PARAMETERS
public static final int CKO_MECHANISM
public static final int CKO_OTP_KEY
public static final int ERACOM_PTK_CERTIFICATE_REQUEST
public static final int ERACOM_PTK_CRL
public static final int ERACOM_PTK_ADAPTER
public static final int ERACOM_PTK_SLOT
public static final int ERACOM_PTK_FM
public static final java.lang.String classToString(long cko)
cko
- valuepublic long getHandle()
public int getSize()
CryptokiException
- CryptokiException if a native error occurspublic long getObjectClass()
CryptokiAttribute
public CryptokiAttributes getAttributes()
CryptokiAttributes
public CryptokiObject Copy(java.util.ArrayList<CryptokiAttribute> attList)
attList
- Attributes to add the copied objectCryptokiException
- CryptokiException if a native error occurspublic java.lang.String getClassName()