public class CryptokiEx
extends java.lang.Object
Cryptoki
class.
The feature added by this class is that after invoking the Cryptoki method,
if an error is detected then a CKR_Exception
exception object is thrown.| Modifier and Type | Method and Description |
|---|---|
static CK_RV |
C_CancelFunction(CK_SESSION_HANDLE hSession) |
static CK_RV |
C_CloseAllSessions(long slotID) |
static CK_RV |
C_CloseSession(CK_SESSION_HANDLE hSession) |
static CK_RV |
C_CopyObject(CK_SESSION_HANDLE hSession,
CK_OBJECT_HANDLE hObject,
CK_ATTRIBUTE[] template,
long attributeCount,
CK_OBJECT_HANDLE hNewObject) |
static CK_RV |
C_CreateObject(CK_SESSION_HANDLE hSession,
CK_ATTRIBUTE[] template,
long attributeCount,
CK_OBJECT_HANDLE hObject) |
static CK_RV |
C_Decrypt(CK_SESSION_HANDLE hSession,
byte[] encryptedData,
long encryptedDataLen,
byte[] data,
LongRef dataLen) |
static CK_RV |
C_DecryptDigestUpdate(CK_SESSION_HANDLE hSession,
byte[] encryptedPart,
long encryptedPartLen,
byte[] part,
LongRef partLen) |
static CK_RV |
C_DecryptFinal(CK_SESSION_HANDLE hSession,
byte[] lastPart,
LongRef lastPartLen) |
static CK_RV |
C_DecryptFinal(CK_SESSION_HANDLE hSession,
CK_MECHANISM mech,
byte[] lastPart,
LongRef lastPartLen) |
static CK_RV |
C_DecryptInit(CK_SESSION_HANDLE hSession,
CK_MECHANISM mechanism,
CK_OBJECT_HANDLE hKey) |
static CK_RV |
C_DecryptUpdate(CK_SESSION_HANDLE hSession,
byte[] encryptedPart,
long encryptedPartLen,
byte[] part,
LongRef partLen) |
static CK_RV |
C_DecryptUpdate(CK_SESSION_HANDLE hSession,
CK_MECHANISM mech,
byte[] encryptedPart,
long encryptedPartLen,
byte[] part,
LongRef partLen) |
static CK_RV |
C_DecryptVerifyUpdate(CK_SESSION_HANDLE hSession,
byte[] encryptedPart,
long encryptedPartLen,
byte[] part,
LongRef partLen) |
static CK_RV |
C_DeriveKey(CK_SESSION_HANDLE hSession,
CK_MECHANISM mechanism,
CK_OBJECT_HANDLE hBaseKey,
CK_ATTRIBUTE[] template,
long attributeCount,
CK_OBJECT_HANDLE hKey) |
static CK_RV |
C_DestroyObject(CK_SESSION_HANDLE hSession,
CK_OBJECT_HANDLE hObject) |
static CK_RV |
C_Digest(CK_SESSION_HANDLE hSession,
byte[] data,
long dataLen,
byte[] digest,
LongRef digestLen) |
static CK_RV |
C_DigestEncryptUpdate(CK_SESSION_HANDLE hSession,
byte[] part,
long partLen,
byte[] encryptedPart,
LongRef encryptedPartLen) |
static CK_RV |
C_DigestFinal(CK_SESSION_HANDLE hSession,
byte[] digest,
LongRef digestLen) |
static CK_RV |
C_DigestInit(CK_SESSION_HANDLE hSession,
CK_MECHANISM mechanism) |
static CK_RV |
C_DigestKey(CK_SESSION_HANDLE hSession,
CK_OBJECT_HANDLE hKey) |
static CK_RV |
C_DigestUpdate(CK_SESSION_HANDLE hSession,
byte[] part,
long partLen) |
static CK_RV |
C_Encrypt(CK_SESSION_HANDLE hSession,
byte[] data,
long dataLen,
byte[] encryptedData,
LongRef encryptedDataLen) |
static CK_RV |
C_EncryptFinal(CK_SESSION_HANDLE hSession,
byte[] lastEncryptedPart,
LongRef lastEncryptedPartLen) |
static CK_RV |
C_EncryptFinal(CK_SESSION_HANDLE hSession,
CK_MECHANISM mech,
byte[] lastEncryptedPart,
LongRef lastEncryptedPartLen) |
static CK_RV |
C_EncryptInit(CK_SESSION_HANDLE hSession,
CK_MECHANISM mechanism,
CK_OBJECT_HANDLE hKey) |
static CK_RV |
C_EncryptUpdate(CK_SESSION_HANDLE hSession,
byte[] part,
long partLen,
byte[] encryptedPart,
LongRef encryptedPartLen) |
static CK_RV |
C_EncryptUpdate(CK_SESSION_HANDLE hSession,
CK_MECHANISM mech,
byte[] part,
long partLen,
byte[] encryptedPart,
LongRef encryptedPartLen) |
static CK_RV |
C_Finalize(java.lang.Object reserved) |
static CK_RV |
C_FindObjects(CK_SESSION_HANDLE hSession,
CK_OBJECT_HANDLE[] hObjects,
long maxObjectCount,
LongRef objectCount) |
static CK_RV |
C_FindObjectsFinal(CK_SESSION_HANDLE hSession) |
static CK_RV |
C_FindObjectsInit(CK_SESSION_HANDLE hSession,
CK_ATTRIBUTE[] template,
long attributeCount) |
static CK_RV |
C_GenerateKey(CK_SESSION_HANDLE hSession,
CK_MECHANISM mechanism,
CK_ATTRIBUTE[] template,
long attributeCount,
CK_OBJECT_HANDLE hKey) |
static CK_RV |
C_GenerateKeyPair(CK_SESSION_HANDLE hSession,
CK_MECHANISM mechanism,
CK_ATTRIBUTE[] publicKeyTemplate,
long publicKeyAttributeCount,
CK_ATTRIBUTE[] privateKeyTemplate,
long privateKeyAttributeCount,
CK_OBJECT_HANDLE hPublicKey,
CK_OBJECT_HANDLE hPrivateKey) |
static CK_RV |
C_GenerateRandom(CK_SESSION_HANDLE hSession,
byte[] randomData,
long randomLen) |
static CK_RV |
C_GetAttributeValue(CK_SESSION_HANDLE hSession,
CK_OBJECT_HANDLE hObject,
CK_ATTRIBUTE[] template,
long attributeCount) |
static CK_RV |
C_GetFunctionStatus(CK_SESSION_HANDLE hSession) |
static CK_RV |
C_GetInfo(CK_INFO info) |
static CK_RV |
C_GetMechanismInfo(long slotID,
CK_MECHANISM_TYPE type,
CK_MECHANISM_INFO info) |
static CK_RV |
C_GetMechanismList(long slotID,
CK_MECHANISM_TYPE[] mechanismList,
LongRef count) |
static CK_RV |
C_GetObjectSize(CK_SESSION_HANDLE hSession,
CK_OBJECT_HANDLE hObject,
LongRef size) |
static CK_RV |
C_GetOperationState(CK_SESSION_HANDLE hSession,
byte[] operationState,
LongRef operationStateLen) |
static CK_RV |
C_GetSessionInfo(CK_SESSION_HANDLE hSession,
CK_SESSION_INFO info) |
static CK_RV |
C_GetSlotInfo(long slotID,
CK_SLOT_INFO info) |
static CK_RV |
C_GetSlotList(CK_BBOOL tokenPresent,
long[] slotList,
LongRef count) |
static CK_RV |
C_GetTokenInfo(long slotID,
CK_TOKEN_INFO info) |
static CK_RV |
C_Initialize(CK_C_INITIALIZE_ARGS initArgs) |
static CK_RV |
C_InitPIN(CK_SESSION_HANDLE hSession,
byte[] pin,
long pinLen) |
static CK_RV |
C_InitToken(long slotID,
byte[] pin,
long pinLen,
byte[] label) |
static CK_RV |
C_Login(CK_SESSION_HANDLE hSession,
CK_USER_TYPE userType,
byte[] pin,
long pinLen) |
static CK_RV |
C_Logout(CK_SESSION_HANDLE hSession) |
static CK_RV |
C_OpenSession(long slotID,
long flags,
java.lang.Object pApplication,
java.lang.Object notifyUnsupported,
CK_SESSION_HANDLE hSession) |
static CK_RV |
C_SeedRandom(CK_SESSION_HANDLE hSession,
byte[] seed,
long seedLen) |
static CK_RV |
C_SetAttributeValue(CK_SESSION_HANDLE hSession,
CK_OBJECT_HANDLE hObject,
CK_ATTRIBUTE[] template,
long attributeCount) |
static CK_RV |
C_SetOperationState(CK_SESSION_HANDLE hSession,
byte[] operationState,
long operationStateLen,
CK_OBJECT_HANDLE hEncryptionKey,
CK_OBJECT_HANDLE hAuthenticationKey) |
static CK_RV |
C_SetPIN(CK_SESSION_HANDLE hSession,
byte[] oldPin,
long oldLen,
byte[] newPin,
long newLen) |
static CK_RV |
C_Sign(CK_SESSION_HANDLE hSession,
byte[] data,
long dataLen,
byte[] signature,
LongRef signatureLen) |
static CK_RV |
C_SignEncryptUpdate(CK_SESSION_HANDLE hSession,
byte[] part,
long partLen,
byte[] encryptedPart,
LongRef encryptedPartLen) |
static CK_RV |
C_SignFinal(CK_SESSION_HANDLE hSession,
byte[] signature,
LongRef signatureLen) |
static CK_RV |
C_SignInit(CK_SESSION_HANDLE hSession,
CK_MECHANISM mechanism,
CK_OBJECT_HANDLE hKey) |
static CK_RV |
C_SignRecover(CK_SESSION_HANDLE hSession,
byte[] data,
long dataLen,
byte[] signature,
LongRef signatureLen) |
static CK_RV |
C_SignRecoverInit(CK_SESSION_HANDLE hSession,
CK_MECHANISM mechanism,
CK_OBJECT_HANDLE hKey) |
static CK_RV |
C_SignUpdate(CK_SESSION_HANDLE hSession,
byte[] part,
long partLen) |
static CK_RV |
C_UnwrapKey(CK_SESSION_HANDLE hSession,
CK_MECHANISM mechanism,
CK_OBJECT_HANDLE hUnwrappingKey,
byte[] wrappedKey,
long wrappedKeyLen,
CK_ATTRIBUTE[] template,
long attributeCount,
CK_OBJECT_HANDLE hKey) |
static CK_RV |
C_Verify(CK_SESSION_HANDLE hSession,
byte[] data,
long dataLen,
byte[] signature,
long signatureLen) |
static CK_RV |
C_VerifyFinal(CK_SESSION_HANDLE hSession,
byte[] signature,
long signatureLen) |
static CK_RV |
C_VerifyInit(CK_SESSION_HANDLE hSession,
CK_MECHANISM mechanism,
CK_OBJECT_HANDLE hKey) |
static CK_RV |
C_VerifyRecover(CK_SESSION_HANDLE hSession,
byte[] signature,
long signatureLen,
byte[] data,
LongRef dataLen) |
static CK_RV |
C_VerifyRecoverInit(CK_SESSION_HANDLE hSession,
CK_MECHANISM mechanism,
CK_OBJECT_HANDLE hKey) |
static CK_RV |
C_VerifyUpdate(CK_SESSION_HANDLE hSession,
byte[] part,
long partLen) |
static CK_RV |
C_WaitForSlotEvent(long flags,
LongRef slot,
java.lang.Object reserved) |
static CK_RV |
C_WrapKey(CK_SESSION_HANDLE hSession,
CK_MECHANISM mechanism,
CK_OBJECT_HANDLE hWrappingKey,
CK_OBJECT_HANDLE hKey,
byte[] wrappedKey,
LongRef wrappedKeyLen) |
static CK_RV |
CA_CloseApplicationID(long SlotID,
long ulHigh,
long ulLow) |
static CK_RV |
CA_DeriveKeyAndWrap(CK_SESSION_HANDLE hSession,
CK_MECHANISM mechanism,
CK_OBJECT_HANDLE hBaseKey,
CK_ATTRIBUTE[] template,
long attributeCount,
CK_MECHANISM mechanismWrap,
CK_OBJECT_HANDLE hWrappingKey,
byte[] wrappedKey,
LongRef wrappedKeyLen) |
static CK_RV |
CA_GetFirmwareVersion(long slotID,
LongRef major,
LongRef minor,
LongRef subminor) |
static CK_RV |
CA_GetHSMPolicySetting(long slotId,
HsmPolicy policy,
LongRef policyValue) |
static CK_RV |
CA_HAAnswerLoginChallenge(CK_SESSION_HANDLE hSession,
CK_OBJECT_HANDLE hLoginPrivateKey,
byte[] pChallengeBlob,
long ulChallengeBlobLen,
byte[] pEncryptedPin,
LongRef pulEncryptedPinLen) |
static CK_RV |
CA_HAGetLoginChallenge(CK_SESSION_HANDLE hSession,
CK_USER_TYPE userType,
byte[] pCertificate,
long ulCertificateLen,
byte[] pChallengeBlob,
LongRef pulChallengeBlobLen) |
static CK_RV |
CA_HAGetMasterPublic(long slotId,
byte[] pCertificate,
LongRef pulCertificate) |
static CK_RV |
CA_HAInit(CK_SESSION_HANDLE hSession,
CK_OBJECT_HANDLE hLoginPrivateKey) |
static CK_RV |
CA_HALogin(CK_SESSION_HANDLE hSession,
byte[] pEncryptedPin,
long ulEncryptedPinLen,
byte[] pMofNBlob,
LongRef pulMofNBlobLen) |
static CK_RV |
CA_OpenApplicationID(long SlotID,
long ulHigh,
long ulLow) |
static CK_RV |
CA_SetApplicationID(long ulHigh,
long ulLow) |
public static CK_RV C_Initialize(CK_C_INITIALIZE_ARGS initArgs) throws CKR_Exception
public static CK_RV C_Finalize(java.lang.Object reserved) throws CKR_Exception
CKR_ExceptionCryptoki.C_Finalize(java.lang.Object)public static CK_RV C_GetInfo(CK_INFO info) throws CKR_Exception
CKR_ExceptionCryptoki.C_GetInfo(com.safenetinc.jcprov.CK_INFO)public static CK_RV C_GetSlotList(CK_BBOOL tokenPresent, long[] slotList, LongRef count) throws CKR_Exception
public static CK_RV C_GetSlotInfo(long slotID, CK_SLOT_INFO info) throws CKR_Exception
public static CK_RV C_GetTokenInfo(long slotID, CK_TOKEN_INFO info) throws CKR_Exception
public static CK_RV C_GetMechanismList(long slotID, CK_MECHANISM_TYPE[] mechanismList, LongRef count) throws CKR_Exception
public static CK_RV C_GetMechanismInfo(long slotID, CK_MECHANISM_TYPE type, CK_MECHANISM_INFO info) throws CKR_Exception
public static CK_RV C_InitToken(long slotID, byte[] pin, long pinLen, byte[] label) throws CKR_Exception
CKR_ExceptionCryptoki.C_InitToken(long, byte[], long, byte[])public static CK_RV C_InitPIN(CK_SESSION_HANDLE hSession, byte[] pin, long pinLen) throws CKR_Exception
public static CK_RV C_SetPIN(CK_SESSION_HANDLE hSession, byte[] oldPin, long oldLen, byte[] newPin, long newLen) throws CKR_Exception
public static CK_RV C_OpenSession(long slotID, long flags, java.lang.Object pApplication, java.lang.Object notifyUnsupported, CK_SESSION_HANDLE hSession) throws CKR_Exception
public static CK_RV C_CloseSession(CK_SESSION_HANDLE hSession) throws CKR_Exception
public static CK_RV C_CloseAllSessions(long slotID) throws CKR_Exception
CKR_ExceptionCryptoki.C_CloseAllSessions(long)public static CK_RV C_GetSessionInfo(CK_SESSION_HANDLE hSession, CK_SESSION_INFO info) throws CKR_Exception
public static CK_RV C_GetOperationState(CK_SESSION_HANDLE hSession, byte[] operationState, LongRef operationStateLen) throws CKR_Exception
public static CK_RV C_SetOperationState(CK_SESSION_HANDLE hSession, byte[] operationState, long operationStateLen, CK_OBJECT_HANDLE hEncryptionKey, CK_OBJECT_HANDLE hAuthenticationKey) throws CKR_Exception
public static CK_RV C_Login(CK_SESSION_HANDLE hSession, CK_USER_TYPE userType, byte[] pin, long pinLen) throws CKR_Exception
public static CK_RV C_Logout(CK_SESSION_HANDLE hSession) throws CKR_Exception
CKR_ExceptionCryptoki.C_Logout(com.safenetinc.jcprov.CK_SESSION_HANDLE)public static CK_RV C_CreateObject(CK_SESSION_HANDLE hSession, CK_ATTRIBUTE[] template, long attributeCount, CK_OBJECT_HANDLE hObject) throws CKR_Exception
public static CK_RV C_CopyObject(CK_SESSION_HANDLE hSession, CK_OBJECT_HANDLE hObject, CK_ATTRIBUTE[] template, long attributeCount, CK_OBJECT_HANDLE hNewObject) throws CKR_Exception
public static CK_RV C_DestroyObject(CK_SESSION_HANDLE hSession, CK_OBJECT_HANDLE hObject) throws CKR_Exception
public static CK_RV C_GetObjectSize(CK_SESSION_HANDLE hSession, CK_OBJECT_HANDLE hObject, LongRef size) throws CKR_Exception
public static CK_RV C_GetAttributeValue(CK_SESSION_HANDLE hSession, CK_OBJECT_HANDLE hObject, CK_ATTRIBUTE[] template, long attributeCount) throws CKR_Exception
public static CK_RV C_SetAttributeValue(CK_SESSION_HANDLE hSession, CK_OBJECT_HANDLE hObject, CK_ATTRIBUTE[] template, long attributeCount) throws CKR_Exception
public static CK_RV C_FindObjectsInit(CK_SESSION_HANDLE hSession, CK_ATTRIBUTE[] template, long attributeCount) throws CKR_Exception
public static CK_RV C_FindObjects(CK_SESSION_HANDLE hSession, CK_OBJECT_HANDLE[] hObjects, long maxObjectCount, LongRef objectCount) throws CKR_Exception
public static CK_RV C_FindObjectsFinal(CK_SESSION_HANDLE hSession) throws CKR_Exception
public static CK_RV C_EncryptInit(CK_SESSION_HANDLE hSession, CK_MECHANISM mechanism, CK_OBJECT_HANDLE hKey) throws CKR_Exception
public static CK_RV C_Encrypt(CK_SESSION_HANDLE hSession, byte[] data, long dataLen, byte[] encryptedData, LongRef encryptedDataLen) throws CKR_Exception
public static CK_RV C_EncryptUpdate(CK_SESSION_HANDLE hSession, byte[] part, long partLen, byte[] encryptedPart, LongRef encryptedPartLen) throws CKR_Exception
public static CK_RV C_EncryptUpdate(CK_SESSION_HANDLE hSession, CK_MECHANISM mech, byte[] part, long partLen, byte[] encryptedPart, LongRef encryptedPartLen) throws CKR_Exception
public static CK_RV C_EncryptFinal(CK_SESSION_HANDLE hSession, byte[] lastEncryptedPart, LongRef lastEncryptedPartLen) throws CKR_Exception
public static CK_RV C_EncryptFinal(CK_SESSION_HANDLE hSession, CK_MECHANISM mech, byte[] lastEncryptedPart, LongRef lastEncryptedPartLen) throws CKR_Exception
public static CK_RV C_DecryptInit(CK_SESSION_HANDLE hSession, CK_MECHANISM mechanism, CK_OBJECT_HANDLE hKey) throws CKR_Exception
public static CK_RV C_Decrypt(CK_SESSION_HANDLE hSession, byte[] encryptedData, long encryptedDataLen, byte[] data, LongRef dataLen) throws CKR_Exception
public static CK_RV C_DecryptUpdate(CK_SESSION_HANDLE hSession, byte[] encryptedPart, long encryptedPartLen, byte[] part, LongRef partLen) throws CKR_Exception
public static CK_RV C_DecryptUpdate(CK_SESSION_HANDLE hSession, CK_MECHANISM mech, byte[] encryptedPart, long encryptedPartLen, byte[] part, LongRef partLen) throws CKR_Exception
public static CK_RV C_DecryptFinal(CK_SESSION_HANDLE hSession, byte[] lastPart, LongRef lastPartLen) throws CKR_Exception
public static CK_RV C_DecryptFinal(CK_SESSION_HANDLE hSession, CK_MECHANISM mech, byte[] lastPart, LongRef lastPartLen) throws CKR_Exception
public static CK_RV C_DigestInit(CK_SESSION_HANDLE hSession, CK_MECHANISM mechanism) throws CKR_Exception
public static CK_RV C_Digest(CK_SESSION_HANDLE hSession, byte[] data, long dataLen, byte[] digest, LongRef digestLen) throws CKR_Exception
public static CK_RV C_DigestUpdate(CK_SESSION_HANDLE hSession, byte[] part, long partLen) throws CKR_Exception
public static CK_RV C_DigestKey(CK_SESSION_HANDLE hSession, CK_OBJECT_HANDLE hKey) throws CKR_Exception
public static CK_RV C_DigestFinal(CK_SESSION_HANDLE hSession, byte[] digest, LongRef digestLen) throws CKR_Exception
public static CK_RV C_SignInit(CK_SESSION_HANDLE hSession, CK_MECHANISM mechanism, CK_OBJECT_HANDLE hKey) throws CKR_Exception
public static CK_RV C_Sign(CK_SESSION_HANDLE hSession, byte[] data, long dataLen, byte[] signature, LongRef signatureLen) throws CKR_Exception
public static CK_RV C_SignUpdate(CK_SESSION_HANDLE hSession, byte[] part, long partLen) throws CKR_Exception
public static CK_RV C_SignFinal(CK_SESSION_HANDLE hSession, byte[] signature, LongRef signatureLen) throws CKR_Exception
public static CK_RV C_SignRecoverInit(CK_SESSION_HANDLE hSession, CK_MECHANISM mechanism, CK_OBJECT_HANDLE hKey) throws CKR_Exception
public static CK_RV C_SignRecover(CK_SESSION_HANDLE hSession, byte[] data, long dataLen, byte[] signature, LongRef signatureLen) throws CKR_Exception
public static CK_RV C_VerifyInit(CK_SESSION_HANDLE hSession, CK_MECHANISM mechanism, CK_OBJECT_HANDLE hKey) throws CKR_Exception
public static CK_RV C_Verify(CK_SESSION_HANDLE hSession, byte[] data, long dataLen, byte[] signature, long signatureLen) throws CKR_Exception
public static CK_RV C_VerifyUpdate(CK_SESSION_HANDLE hSession, byte[] part, long partLen) throws CKR_Exception
public static CK_RV C_VerifyFinal(CK_SESSION_HANDLE hSession, byte[] signature, long signatureLen) throws CKR_Exception
public static CK_RV C_VerifyRecoverInit(CK_SESSION_HANDLE hSession, CK_MECHANISM mechanism, CK_OBJECT_HANDLE hKey) throws CKR_Exception
public static CK_RV C_VerifyRecover(CK_SESSION_HANDLE hSession, byte[] signature, long signatureLen, byte[] data, LongRef dataLen) throws CKR_Exception
public static CK_RV C_DigestEncryptUpdate(CK_SESSION_HANDLE hSession, byte[] part, long partLen, byte[] encryptedPart, LongRef encryptedPartLen) throws CKR_Exception
public static CK_RV C_DecryptDigestUpdate(CK_SESSION_HANDLE hSession, byte[] encryptedPart, long encryptedPartLen, byte[] part, LongRef partLen) throws CKR_Exception
public static CK_RV C_SignEncryptUpdate(CK_SESSION_HANDLE hSession, byte[] part, long partLen, byte[] encryptedPart, LongRef encryptedPartLen) throws CKR_Exception
public static CK_RV C_DecryptVerifyUpdate(CK_SESSION_HANDLE hSession, byte[] encryptedPart, long encryptedPartLen, byte[] part, LongRef partLen) throws CKR_Exception
public static CK_RV C_GenerateKey(CK_SESSION_HANDLE hSession, CK_MECHANISM mechanism, CK_ATTRIBUTE[] template, long attributeCount, CK_OBJECT_HANDLE hKey) throws CKR_Exception
public static CK_RV C_GenerateKeyPair(CK_SESSION_HANDLE hSession, CK_MECHANISM mechanism, CK_ATTRIBUTE[] publicKeyTemplate, long publicKeyAttributeCount, CK_ATTRIBUTE[] privateKeyTemplate, long privateKeyAttributeCount, CK_OBJECT_HANDLE hPublicKey, CK_OBJECT_HANDLE hPrivateKey) throws CKR_Exception
CKR_ExceptionCryptoki.C_GenerateKeyPair(com.safenetinc.jcprov.CK_SESSION_HANDLE, com.safenetinc.jcprov.CK_MECHANISM, com.safenetinc.jcprov.CK_ATTRIBUTE[], long, com.safenetinc.jcprov.CK_ATTRIBUTE[], long, com.safenetinc.jcprov.CK_OBJECT_HANDLE, com.safenetinc.jcprov.CK_OBJECT_HANDLE)public static CK_RV C_WrapKey(CK_SESSION_HANDLE hSession, CK_MECHANISM mechanism, CK_OBJECT_HANDLE hWrappingKey, CK_OBJECT_HANDLE hKey, byte[] wrappedKey, LongRef wrappedKeyLen) throws CKR_Exception
public static CK_RV C_UnwrapKey(CK_SESSION_HANDLE hSession, CK_MECHANISM mechanism, CK_OBJECT_HANDLE hUnwrappingKey, byte[] wrappedKey, long wrappedKeyLen, CK_ATTRIBUTE[] template, long attributeCount, CK_OBJECT_HANDLE hKey) throws CKR_Exception
public static CK_RV C_DeriveKey(CK_SESSION_HANDLE hSession, CK_MECHANISM mechanism, CK_OBJECT_HANDLE hBaseKey, CK_ATTRIBUTE[] template, long attributeCount, CK_OBJECT_HANDLE hKey) throws CKR_Exception
public static CK_RV C_SeedRandom(CK_SESSION_HANDLE hSession, byte[] seed, long seedLen) throws CKR_Exception
public static CK_RV C_GenerateRandom(CK_SESSION_HANDLE hSession, byte[] randomData, long randomLen) throws CKR_Exception
public static CK_RV C_GetFunctionStatus(CK_SESSION_HANDLE hSession) throws CKR_Exception
public static CK_RV C_CancelFunction(CK_SESSION_HANDLE hSession) throws CKR_Exception
public static CK_RV C_WaitForSlotEvent(long flags, LongRef slot, java.lang.Object reserved) throws CKR_Exception
public static CK_RV CA_SetApplicationID(long ulHigh, long ulLow) throws CKR_Exception
CKR_ExceptionCryptoki.CA_SetApplicationID(long, long)public static CK_RV CA_OpenApplicationID(long SlotID, long ulHigh, long ulLow) throws CKR_Exception
CKR_ExceptionCryptoki.CA_OpenApplicationID(long, long, long)public static CK_RV CA_CloseApplicationID(long SlotID, long ulHigh, long ulLow) throws CKR_Exception
CKR_ExceptionCryptoki.CA_CloseApplicationID(long, long, long)public static CK_RV CA_HALogin(CK_SESSION_HANDLE hSession, byte[] pEncryptedPin, long ulEncryptedPinLen, byte[] pMofNBlob, LongRef pulMofNBlobLen) throws CKR_Exception
public static CK_RV CA_HAGetMasterPublic(long slotId, byte[] pCertificate, LongRef pulCertificate) throws CKR_Exception
public static CK_RV CA_HAGetLoginChallenge(CK_SESSION_HANDLE hSession, CK_USER_TYPE userType, byte[] pCertificate, long ulCertificateLen, byte[] pChallengeBlob, LongRef pulChallengeBlobLen) throws CKR_Exception
public static CK_RV CA_HAAnswerLoginChallenge(CK_SESSION_HANDLE hSession, CK_OBJECT_HANDLE hLoginPrivateKey, byte[] pChallengeBlob, long ulChallengeBlobLen, byte[] pEncryptedPin, LongRef pulEncryptedPinLen) throws CKR_Exception
public static CK_RV CA_HAInit(CK_SESSION_HANDLE hSession, CK_OBJECT_HANDLE hLoginPrivateKey) throws CKR_Exception
public static CK_RV CA_DeriveKeyAndWrap(CK_SESSION_HANDLE hSession, CK_MECHANISM mechanism, CK_OBJECT_HANDLE hBaseKey, CK_ATTRIBUTE[] template, long attributeCount, CK_MECHANISM mechanismWrap, CK_OBJECT_HANDLE hWrappingKey, byte[] wrappedKey, LongRef wrappedKeyLen) throws CKR_Exception
CKR_ExceptionCryptoki.CA_DeriveKeyAndWrap(com.safenetinc.jcprov.CK_SESSION_HANDLE, com.safenetinc.jcprov.CK_MECHANISM, com.safenetinc.jcprov.CK_OBJECT_HANDLE, com.safenetinc.jcprov.CK_ATTRIBUTE[], long, com.safenetinc.jcprov.CK_MECHANISM, com.safenetinc.jcprov.CK_OBJECT_HANDLE, byte[], com.safenetinc.jcprov.LongRef)public static CK_RV CA_GetHSMPolicySetting(long slotId, HsmPolicy policy, LongRef policyValue)
public static CK_RV CA_GetFirmwareVersion(long slotID, LongRef major, LongRef minor, LongRef subminor) throws CKR_Exception
Copyright (c) SafeNet, Inc. 2012-2016. All rights reserved.