Package | Description |
---|---|
iaik.pkcs.pkcs11.wrapper | |
it.trento.comune.j4sign.pkcs11 |
The j4sign layer for managing PKCS#11 tokens.
|
Modifier and Type | Method and Description |
---|---|
void |
PKCS11Implementation.C_CancelFunction(long hSession)
C_CancelFunction is a legacy function; it cancels a function
running in parallel.
|
void |
PKCS11.C_CancelFunction(long hSession)
C_CancelFunction is a legacy function; it cancels a function
running in parallel.
|
void |
PKCS11Implementation.C_CloseAllSessions(long slotID)
C_CloseAllSessions closes all sessions with a token.
|
void |
PKCS11.C_CloseAllSessions(long slotID)
C_CloseAllSessions closes all sessions with a token.
|
void |
PKCS11Implementation.C_CloseSession(long hSession)
C_CloseSession closes a session between an application and a
token.
|
void |
PKCS11.C_CloseSession(long hSession)
C_CloseSession closes a session between an application and a
token.
|
long |
PKCS11Implementation.C_CopyObject(long hSession,
long hObject,
CK_ATTRIBUTE[] pTemplate)
C_CopyObject copies an object, creating a new object for the
copy.
|
long |
PKCS11.C_CopyObject(long hSession,
long hObject,
CK_ATTRIBUTE[] pTemplate)
C_CopyObject copies an object, creating a new object for the
copy.
|
long |
PKCS11Implementation.C_CreateObject(long hSession,
CK_ATTRIBUTE[] pTemplate)
C_CreateObject creates a new object.
|
long |
PKCS11.C_CreateObject(long hSession,
CK_ATTRIBUTE[] pTemplate)
C_CreateObject creates a new object.
|
byte[] |
PKCS11Implementation.C_Decrypt(long hSession,
byte[] pEncryptedData)
C_Decrypt decrypts encrypted data in a single part.
|
byte[] |
PKCS11.C_Decrypt(long hSession,
byte[] pEncryptedData)
C_Decrypt decrypts encrypted data in a single part.
|
byte[] |
PKCS11Implementation.C_DecryptDigestUpdate(long hSession,
byte[] pEncryptedPart)
C_DecryptDigestUpdate continues a multiple-part decryption and
digesting operation.
|
byte[] |
PKCS11.C_DecryptDigestUpdate(long hSession,
byte[] pEncryptedPart)
C_DecryptDigestUpdate continues a multiple-part decryption and
digesting operation.
|
byte[] |
PKCS11Implementation.C_DecryptFinal(long hSession)
C_DecryptFinal finishes a multiple-part decryption
operation.
|
byte[] |
PKCS11.C_DecryptFinal(long hSession)
C_DecryptFinal finishes a multiple-part decryption
operation.
|
void |
PKCS11Implementation.C_DecryptInit(long hSession,
CK_MECHANISM pMechanism,
long hKey)
C_DecryptInit initializes a decryption operation.
|
void |
PKCS11.C_DecryptInit(long hSession,
CK_MECHANISM pMechanism,
long hKey)
C_DecryptInit initializes a decryption operation.
|
byte[] |
PKCS11Implementation.C_DecryptUpdate(long hSession,
byte[] pEncryptedPart)
C_DecryptUpdate continues a multiple-part decryption
operation.
|
byte[] |
PKCS11.C_DecryptUpdate(long hSession,
byte[] pEncryptedPart)
C_DecryptUpdate continues a multiple-part decryption
operation.
|
byte[] |
PKCS11Implementation.C_DecryptVerifyUpdate(long hSession,
byte[] pEncryptedPart)
C_DecryptVerifyUpdate continues a multiple-part decryption and
verify operation.
|
byte[] |
PKCS11.C_DecryptVerifyUpdate(long hSession,
byte[] pEncryptedPart)
C_DecryptVerifyUpdate continues a multiple-part decryption and
verify operation.
|
long |
PKCS11Implementation.C_DeriveKey(long hSession,
CK_MECHANISM pMechanism,
long hBaseKey,
CK_ATTRIBUTE[] pTemplate)
C_DeriveKey derives a key from a base key, creating a new key
object.
|
long |
PKCS11.C_DeriveKey(long hSession,
CK_MECHANISM pMechanism,
long hBaseKey,
CK_ATTRIBUTE[] pTemplate)
C_DeriveKey derives a key from a base key, creating a new key
object.
|
void |
PKCS11Implementation.C_DestroyObject(long hSession,
long hObject)
C_DestroyObject destroys an object.
|
void |
PKCS11.C_DestroyObject(long hSession,
long hObject)
C_DestroyObject destroys an object.
|
byte[] |
PKCS11Implementation.C_Digest(long hSession,
byte[] data)
C_Digest digests data in a single part.
|
byte[] |
PKCS11.C_Digest(long hSession,
byte[] data)
C_Digest digests data in a single part.
|
byte[] |
PKCS11Implementation.C_DigestEncryptUpdate(long hSession,
byte[] pPart)
C_DigestEncryptUpdate continues a multiple-part digesting
and encryption operation.
|
byte[] |
PKCS11.C_DigestEncryptUpdate(long hSession,
byte[] pPart)
C_DigestEncryptUpdate continues a multiple-part digesting
and encryption operation.
|
byte[] |
PKCS11Implementation.C_DigestFinal(long hSession)
C_DigestFinal finishes a multiple-part message-digesting
operation.
|
byte[] |
PKCS11.C_DigestFinal(long hSession)
C_DigestFinal finishes a multiple-part message-digesting
operation.
|
void |
PKCS11Implementation.C_DigestInit(long hSession,
CK_MECHANISM pMechanism)
C_DigestInit initializes a message-digesting operation.
|
void |
PKCS11.C_DigestInit(long hSession,
CK_MECHANISM pMechanism)
C_DigestInit initializes a message-digesting operation.
|
void |
PKCS11Implementation.C_DigestKey(long hSession,
long hKey)
C_DigestKey continues a multi-part message-digesting
operation, by digesting the value of a secret key as part of
the data already digested.
|
void |
PKCS11.C_DigestKey(long hSession,
long hKey)
C_DigestKey continues a multi-part message-digesting
operation, by digesting the value of a secret key as part of
the data already digested.
|
void |
PKCS11Implementation.C_DigestUpdate(long hSession,
byte[] pPart)
C_DigestUpdate continues a multiple-part message-digesting
operation.
|
void |
PKCS11.C_DigestUpdate(long hSession,
byte[] pPart)
C_DigestUpdate continues a multiple-part message-digesting
operation.
|
byte[] |
PKCS11Implementation.C_Encrypt(long hSession,
byte[] pData)
C_Encrypt encrypts single-part data.
|
byte[] |
PKCS11.C_Encrypt(long hSession,
byte[] pData)
C_Encrypt encrypts single-part data.
|
byte[] |
PKCS11Implementation.C_EncryptFinal(long hSession)
C_EncryptFinal finishes a multiple-part encryption
operation.
|
byte[] |
PKCS11.C_EncryptFinal(long hSession)
C_EncryptFinal finishes a multiple-part encryption
operation.
|
void |
PKCS11Implementation.C_EncryptInit(long hSession,
CK_MECHANISM pMechanism,
long hKey)
C_EncryptInit initializes an encryption operation.
|
void |
PKCS11.C_EncryptInit(long hSession,
CK_MECHANISM pMechanism,
long hKey)
C_EncryptInit initializes an encryption operation.
|
byte[] |
PKCS11Implementation.C_EncryptUpdate(long hSession,
byte[] pPart)
C_EncryptUpdate continues a multiple-part encryption
operation.
|
byte[] |
PKCS11.C_EncryptUpdate(long hSession,
byte[] pPart)
C_EncryptUpdate continues a multiple-part encryption
operation.
|
void |
PKCS11Implementation.C_Finalize(java.lang.Object pReserved)
C_Finalize indicates that an application is done with the
Cryptoki library
(General-purpose)
|
void |
PKCS11.C_Finalize(java.lang.Object pReserved)
C_Finalize indicates that an application is done with the
Cryptoki library
(General-purpose)
|
long[] |
PKCS11Implementation.C_FindObjects(long hSession,
long ulMaxObjectCount)
C_FindObjects continues a search for token and session
objects that match a template, obtaining additional object
handles.
|
long[] |
PKCS11.C_FindObjects(long hSession,
long ulMaxObjectCount)
C_FindObjects continues a search for token and session
objects that match a template, obtaining additional object
handles.
|
void |
PKCS11Implementation.C_FindObjectsFinal(long hSession)
C_FindObjectsFinal finishes a search for token and session
objects.
|
void |
PKCS11.C_FindObjectsFinal(long hSession)
C_FindObjectsFinal finishes a search for token and session
objects.
|
void |
PKCS11Implementation.C_FindObjectsInit(long hSession,
CK_ATTRIBUTE[] pTemplate)
C_FindObjectsInit initializes a search for token and session
objects that match a template.
|
void |
PKCS11.C_FindObjectsInit(long hSession,
CK_ATTRIBUTE[] pTemplate)
C_FindObjectsInit initializes a search for token and session
objects that match a template.
|
long |
PKCS11Implementation.C_GenerateKey(long hSession,
CK_MECHANISM pMechanism,
CK_ATTRIBUTE[] pTemplate)
C_GenerateKey generates a secret key, creating a new key
object.
|
long |
PKCS11.C_GenerateKey(long hSession,
CK_MECHANISM pMechanism,
CK_ATTRIBUTE[] pTemplate)
C_GenerateKey generates a secret key, creating a new key
object.
|
long[] |
PKCS11Implementation.C_GenerateKeyPair(long hSession,
CK_MECHANISM pMechanism,
CK_ATTRIBUTE[] pPublicKeyTemplate,
CK_ATTRIBUTE[] pPrivateKeyTemplate)
C_GenerateKeyPair generates a public-key/private-key pair,
creating new key objects.
|
long[] |
PKCS11.C_GenerateKeyPair(long hSession,
CK_MECHANISM pMechanism,
CK_ATTRIBUTE[] pPublicKeyTemplate,
CK_ATTRIBUTE[] pPrivateKeyTemplate)
C_GenerateKeyPair generates a public native-key/private-key pair,
creating new key objects.
|
void |
PKCS11Implementation.C_GenerateRandom(long hSession,
byte[] randomData)
C_GenerateRandom generates random data.
|
void |
PKCS11.C_GenerateRandom(long hSession,
byte[] randomData)
C_GenerateRandom generates random data.
|
void |
PKCS11Implementation.C_GetAttributeValue(long hSession,
long hObject,
CK_ATTRIBUTE[] pTemplate)
C_GetAttributeValue obtains the value of one or more object
attributes.
|
void |
PKCS11.C_GetAttributeValue(long hSession,
long hObject,
CK_ATTRIBUTE[] pTemplate)
C_GetAttributeValue obtains the value of one or more object
attributes.
|
void |
PKCS11Implementation.C_GetFunctionStatus(long hSession)
C_GetFunctionStatus is a legacy function; it obtains an
updated status of a function running in parallel with an
application.
|
void |
PKCS11.C_GetFunctionStatus(long hSession)
C_GetFunctionStatus is a legacy function; it obtains an
updated status of a function running in parallel with an
application.
|
CK_INFO |
PKCS11Implementation.C_GetInfo()
C_GetInfo returns general information about Cryptoki.
|
CK_INFO |
PKCS11.C_GetInfo()
C_GetInfo returns general information about Cryptoki.
|
CK_MECHANISM_INFO |
PKCS11Implementation.C_GetMechanismInfo(long slotID,
long type)
C_GetMechanismInfo obtains information about a particular
mechanism possibly supported by a token.
|
CK_MECHANISM_INFO |
PKCS11.C_GetMechanismInfo(long slotID,
long type)
C_GetMechanismInfo obtains information about a particular
mechanism possibly supported by a token.
|
long[] |
PKCS11Implementation.C_GetMechanismList(long slotID)
C_GetMechanismList obtains a list of mechanism types
supported by a token.
|
long[] |
PKCS11.C_GetMechanismList(long slotID)
C_GetMechanismList obtains a list of mechanism types
supported by a token.
|
long |
PKCS11Implementation.C_GetObjectSize(long hSession,
long hObject)
C_GetObjectSize gets the size of an object in bytes.
|
long |
PKCS11.C_GetObjectSize(long hSession,
long hObject)
C_GetObjectSize gets the size of an object in bytes.
|
byte[] |
PKCS11Implementation.C_GetOperationState(long hSession)
C_GetOperationState obtains the state of the cryptographic operation
in a session.
|
byte[] |
PKCS11.C_GetOperationState(long hSession)
C_GetOperationState obtains the state of the cryptographic operation
in a session.
|
CK_SESSION_INFO |
PKCS11Implementation.C_GetSessionInfo(long hSession)
C_GetSessionInfo obtains information about the session.
|
CK_SESSION_INFO |
PKCS11.C_GetSessionInfo(long hSession)
C_GetSessionInfo obtains information about the session.
|
CK_SLOT_INFO |
PKCS11Implementation.C_GetSlotInfo(long slotID)
C_GetSlotInfo obtains information about a particular slot in
the system.
|
CK_SLOT_INFO |
PKCS11.C_GetSlotInfo(long slotID)
C_GetSlotInfo obtains information about a particular slot in
the system.
|
long[] |
PKCS11Implementation.C_GetSlotList(boolean tokenPresent)
C_GetSlotList obtains a list of slots in the system.
|
long[] |
PKCS11.C_GetSlotList(boolean tokenPresent)
C_GetSlotList obtains a list of slots in the system.
|
CK_TOKEN_INFO |
PKCS11Implementation.C_GetTokenInfo(long slotID)
C_GetTokenInfo obtains information about a particular token
in the system.
|
CK_TOKEN_INFO |
PKCS11.C_GetTokenInfo(long slotID)
C_GetTokenInfo obtains information about a particular token
in the system.
|
void |
PKCS11Implementation.C_Initialize(java.lang.Object pInitArgs)
C_Initialize initializes the Cryptoki library.
|
void |
PKCS11.C_Initialize(java.lang.Object pInitArgs)
C_Initialize initializes the Cryptoki library.
|
void |
PKCS11Implementation.C_InitPIN(long hSession,
char[] pPin)
C_InitPIN initializes the normal user's PIN.
|
void |
PKCS11.C_InitPIN(long hSession,
char[] pPin)
C_InitPIN initializes the normal user's PIN.
|
void |
PKCS11Implementation.C_InitToken(long slotID,
char[] pPin,
char[] pLabel)
C_InitToken initializes a token.
|
void |
PKCS11.C_InitToken(long slotID,
char[] pPin,
char[] pLabel)
C_InitToken initializes a token.
|
void |
PKCS11Implementation.C_Login(long hSession,
long userType,
char[] pPin)
C_Login logs a user into a token.
|
void |
PKCS11.C_Login(long hSession,
long userType,
char[] pPin)
C_Login logs a user into a token.
|
void |
PKCS11Implementation.C_Logout(long hSession)
C_Logout logs a user out from a token.
|
void |
PKCS11.C_Logout(long hSession)
C_Logout logs a user out from a token.
|
long |
PKCS11Implementation.C_OpenSession(long slotID,
long flags,
java.lang.Object pApplication,
CK_NOTIFY Notify)
C_OpenSession opens a session between an application and a
token.
|
long |
PKCS11.C_OpenSession(long slotID,
long flags,
java.lang.Object pApplication,
CK_NOTIFY Notify)
C_OpenSession opens a session between an application and a
token.
|
void |
PKCS11Implementation.C_SeedRandom(long hSession,
byte[] pSeed)
C_SeedRandom mixes additional seed material into the token's
random number generator.
|
void |
PKCS11.C_SeedRandom(long hSession,
byte[] pSeed)
C_SeedRandom mixes additional seed material into the token's
random number generator.
|
void |
PKCS11Implementation.C_SetAttributeValue(long hSession,
long hObject,
CK_ATTRIBUTE[] pTemplate)
C_SetAttributeValue modifies the value of one or more object
attributes
(Object management)
|
void |
PKCS11.C_SetAttributeValue(long hSession,
long hObject,
CK_ATTRIBUTE[] pTemplate)
C_SetAttributeValue modifies the value of one or more object
attributes
(Object management)
|
void |
PKCS11Implementation.C_SetOperationState(long hSession,
byte[] pOperationState,
long hEncryptionKey,
long hAuthenticationKey)
C_SetOperationState restores the state of the cryptographic
operation in a session.
|
void |
PKCS11.C_SetOperationState(long hSession,
byte[] pOperationState,
long hEncryptionKey,
long hAuthenticationKey)
C_SetOperationState restores the state of the cryptographic
operation in a session.
|
void |
PKCS11Implementation.C_SetPIN(long hSession,
char[] pOldPin,
char[] pNewPin)
C_SetPIN modifies the PIN of the user who is logged in.
|
void |
PKCS11.C_SetPIN(long hSession,
char[] pOldPin,
char[] pNewPin)
C_SetPIN modifies the PIN of the user who is logged in.
|
byte[] |
PKCS11Implementation.C_Sign(long hSession,
byte[] pData)
C_Sign signs (encrypts with private key) data in a single
part, where the signature is (will be) an appendix to the
data, and plaintext cannot be recovered from the signature.
|
byte[] |
PKCS11.C_Sign(long hSession,
byte[] pData)
C_Sign signs (encrypts with private key) data in a single
part, where the signature is (will be) an appendix to the
data, and plaintext cannot be recovered from the signature.
|
byte[] |
PKCS11Implementation.C_SignEncryptUpdate(long hSession,
byte[] pPart)
C_SignEncryptUpdate continues a multiple-part signing and
encryption operation.
|
byte[] |
PKCS11.C_SignEncryptUpdate(long hSession,
byte[] pPart)
C_SignEncryptUpdate continues a multiple-part signing and
encryption operation.
|
byte[] |
PKCS11Implementation.C_SignFinal(long hSession)
C_SignFinal finishes a multiple-part signature operation,
returning the signature.
|
byte[] |
PKCS11.C_SignFinal(long hSession)
C_SignFinal finishes a multiple-part signature operation,
returning the signature.
|
void |
PKCS11Implementation.C_SignInit(long hSession,
CK_MECHANISM pMechanism,
long hKey)
C_SignInit initializes a signature (private key encryption)
operation, where the signature is (will be) an appendix to
the data, and plaintext cannot be recovered from the
signature.
|
void |
PKCS11.C_SignInit(long hSession,
CK_MECHANISM pMechanism,
long hKey)
C_SignInit initializes a signature (private key encryption)
operation, where the signature is (will be) an appendix to
the data, and plaintext cannot be recovered from the
signature.
|
byte[] |
PKCS11Implementation.C_SignRecover(long hSession,
byte[] pData)
C_SignRecover signs data in a single operation, where the
data can be recovered from the signature.
|
byte[] |
PKCS11.C_SignRecover(long hSession,
byte[] pData)
C_SignRecover signs data in a single operation, where the
data can be recovered from the signature.
|
void |
PKCS11Implementation.C_SignRecoverInit(long hSession,
CK_MECHANISM pMechanism,
long hKey)
C_SignRecoverInit initializes a signature operation, where
the data can be recovered from the signature.
|
void |
PKCS11.C_SignRecoverInit(long hSession,
CK_MECHANISM pMechanism,
long hKey)
C_SignRecoverInit initializes a signature operation, where
the data can be recovered from the signature.
|
void |
PKCS11Implementation.C_SignUpdate(long hSession,
byte[] pPart)
C_SignUpdate continues a multiple-part signature operation,
where the signature is (will be) an appendix to the data,
and plaintext cannot be recovered from the signature.
|
void |
PKCS11.C_SignUpdate(long hSession,
byte[] pPart)
C_SignUpdate continues a multiple-part signature operation,
where the signature is (will be) an appendix to the data,
and plaintext cannot be recovered from the signature.
|
long |
PKCS11Implementation.C_UnwrapKey(long hSession,
CK_MECHANISM pMechanism,
long hUnwrappingKey,
byte[] pWrappedKey,
CK_ATTRIBUTE[] pTemplate)
C_UnwrapKey unwraps (decrypts) a wrapped key, creating a new
key object.
|
long |
PKCS11.C_UnwrapKey(long hSession,
CK_MECHANISM pMechanism,
long hUnwrappingKey,
byte[] pWrappedKey,
CK_ATTRIBUTE[] pTemplate)
C_UnwrapKey unwraps (decrypts) a wrapped key, creating a new
key object.
|
void |
PKCS11Implementation.C_Verify(long hSession,
byte[] pData,
byte[] pSignature)
C_Verify verifies a signature in a single-part operation,
where the signature is an appendix to the data, and plaintext
cannot be recovered from the signature.
|
void |
PKCS11.C_Verify(long hSession,
byte[] pData,
byte[] pSignature)
C_Verify verifies a signature in a single-part operation,
where the signature is an appendix to the data, and plaintext
cannot be recovered from the signature.
|
void |
PKCS11Implementation.C_VerifyFinal(long hSession,
byte[] pSignature)
C_VerifyFinal finishes a multiple-part verification
operation, checking the signature.
|
void |
PKCS11.C_VerifyFinal(long hSession,
byte[] pSignature)
C_VerifyFinal finishes a multiple-part verification
operation, checking the signature.
|
void |
PKCS11Implementation.C_VerifyInit(long hSession,
CK_MECHANISM pMechanism,
long hKey)
C_VerifyInit initializes a verification operation, where the
signature is an appendix to the data, and plaintext cannot
cannot be recovered from the signature (e.g.
|
void |
PKCS11.C_VerifyInit(long hSession,
CK_MECHANISM pMechanism,
long hKey)
C_VerifyInit initializes a verification operation, where the
signature is an appendix to the data, and plaintext cannot
cannot be recovered from the signature (e.g.
|
byte[] |
PKCS11Implementation.C_VerifyRecover(long hSession,
byte[] pSignature)
C_VerifyRecover verifies a signature in a single-part
operation, where the data is recovered from the signature.
|
byte[] |
PKCS11.C_VerifyRecover(long hSession,
byte[] pSignature)
C_VerifyRecover verifies a signature in a single-part
operation, where the data is recovered from the signature.
|
void |
PKCS11Implementation.C_VerifyRecoverInit(long hSession,
CK_MECHANISM pMechanism,
long hKey)
C_VerifyRecoverInit initializes a signature verification
operation, where the data is recovered from the signature.
|
void |
PKCS11.C_VerifyRecoverInit(long hSession,
CK_MECHANISM pMechanism,
long hKey)
C_VerifyRecoverInit initializes a signature verification
operation, where the data is recovered from the signature.
|
void |
PKCS11Implementation.C_VerifyUpdate(long hSession,
byte[] pPart)
C_VerifyUpdate continues a multiple-part verification
operation, where the signature is an appendix to the data,
and plaintext cannot be recovered from the signature.
|
void |
PKCS11.C_VerifyUpdate(long hSession,
byte[] pPart)
C_VerifyUpdate continues a multiple-part verification
operation, where the signature is an appendix to the data,
and plaintext cannot be recovered from the signature.
|
long |
PKCS11Implementation.C_WaitForSlotEvent(long flags,
java.lang.Object pReserved)
C_WaitForSlotEvent waits for a slot event (token insertion,
removal, etc.) to occur.
|
long |
PKCS11.C_WaitForSlotEvent(long flags,
java.lang.Object pReserved)
C_WaitForSlotEvent waits for a slot event (token insertion,
removal, etc.) to occur.
|
byte[] |
PKCS11Implementation.C_WrapKey(long hSession,
CK_MECHANISM pMechanism,
long hWrappingKey,
long hKey)
C_WrapKey wraps (i.e., encrypts) a key.
|
byte[] |
PKCS11.C_WrapKey(long hSession,
CK_MECHANISM pMechanism,
long hWrappingKey,
long hKey)
C_WrapKey wraps (i.e., encrypts) a key.
|
java.lang.Object |
CK_CREATEMUTEX.CK_CREATEMUTEX()
Method CK_CREATEMUTEX
|
void |
CK_DESTROYMUTEX.CK_DESTROYMUTEX(java.lang.Object pMutex)
Method CK_DESTROYMUTEX
|
void |
CK_LOCKMUTEX.CK_LOCKMUTEX(java.lang.Object pMutex)
Method CK_LOCKMUTEX
|
void |
CK_NOTIFY.CK_NOTIFY(long hSession,
long event,
java.lang.Object pApplication)
Method CK_NOTIFY
|
void |
CK_UNLOCKMUTEX.CK_UNLOCKMUTEX(java.lang.Object pMutex)
Method CK_UNLOCKMUTEX
|
Modifier and Type | Method and Description |
---|---|
void |
PKCS11Signer.closeSession()
Closes the default PKCS#11 session.
|
void |
PKCS11Signer.closeSession(long sessionHandle)
Closes a specific PKCS#11 session.
|
byte[] |
PKCS11Signer.encryptDigest(java.lang.String label,
byte[] digest) |
long |
PKCS11Signer.findCertificateFromID(byte[] id)
Finds a certificate matching the given byte[] id.
|
long |
PKCS11Signer.findCertificateFromLabel(char[] label)
Finds a certificate matching the given textual label.
|
long |
PKCS11Signer.findCertificateFromSignatureKeyHandle(long signatureKeyHandle)
Searches the certificate corresponding to the private key identified by
the given handle; this method assumes that corresponding certificates and
private keys are sharing the same byte[] IDs.
|
long |
PKCS11Signer.findSignatureKey()
Returns the first private key handle found on current token.
|
long |
PKCS11Signer.findSignatureKeyFromCertificateHandle(long certHandle)
Searches the private key corresponding to the certificate identified by
the given handle; this method assumes that corresponding certificates and
private keys are sharing the same byte[] IDs.
|
long |
PKCS11Signer.findSignatureKeyFromID(byte[] id)
Returns the private key handle, on current token, corresponding to the
given byte[].
|
long |
PKCS11Signer.findSignatureKeyFromLabel(java.lang.String label)
Returns the private key handle, on current token, corresponding to the
given textual label.
|
long |
PKCS11Signer.findSuitableToken(long mechanismCode) |
java.util.ArrayList |
PKCS11Signer.findTokensSupportingMechanism(long mechanismCode) |
byte[] |
PKCS11Signer.getDEREncodedCertificate(long certHandle)
Returns the DER encoded certificate identified by the given handle, as
read from the token.
|
byte[] |
PKCS11Signer.getDEREncodedCertificate(long certHandle,
long sessionHandle) |
byte[] |
PKCS11Signer.getDEREncodedCertificateAndID(long certHandle,
java.io.ByteArrayOutputStream id)
Returns the DER encoded certificate identified by the given handle,
and its ID attribute.
|
void |
PKCS11Signer.getMechanismInfo()
Gets informations on cryptographic operations supported by the tokens.
|
private void |
PKCS11Signer.getModuleInfo()
Gets currently loaded cryptoky description.
|
private long[] |
PKCS11Signer.getSlotList()
Gets current reader infos.
|
java.lang.String |
PKCS11Signer.getTokenDescription() |
long[] |
PKCS11Signer.getTokens()
Lists currently inserted tokens.
|
long |
PKCS11Signer.getTokenSupportingMechanism(long mechanismCode)
Queries if there is a token that supporting a given cryptographic
operation.
|
private void |
PKCS11Signer.initializeLibrary()
Initializes cryptoki library operations.
|
private void |
PKCS11Signer.initializeTokenAndMechanism(long mechanism) |
private void |
PKCS11Signer.initializeTokenInReader(java.lang.String reader) |
boolean |
PKCS11Signer.isMechanismSupportedByToken(long mechanismCode,
long tokenID)
Tells if a given token supports a given cryptographic operation.
|
void |
PKCS11Signer.login(char[] pwd)
Logs in to the current session; login is usually necessary to see and use
private key objects on the token.
|
void |
PKCS11Signer.login(java.lang.String pwd)
Logs in to the current session; login is usually necessary to see and use
private key objects on the token.
|
void |
PKCS11Signer.logout()
Logs out the current user.
|
void |
PKCS11Signer.openSession(char[] password)
Opens a session on the token, logging in the user.
|
byte[] |
PKCS11Signer.signDataMultiplePart(long signatureKeyHandle,
java.io.InputStream dataStream)
Sign (here means digesting and encrypting with private key) the provided
data with a multiple-pass operation.
|
byte[] |
PKCS11Signer.signDataSinglePart(long signatureKeyHandle,
byte[] data)
Sign (here means encrypting with private key) the provided data with a
single operation.
|