CryptoKeyStorage Class
Properties Methods Events Configuration Settings Errors
The CryptoKeyStorage class offers key storage functionality for a variety of key store types.
Syntax
SecureBlackboxLiteCryptoKeyStorage
SecureBlackboxLiteCryptoKeyStorageSwift
Remarks
CryptoKeyStorage provides access to many types of key stores, such as files or PKCS#11.
Property List
The following is the full list of the properties of the class with short descriptions. Click on the links for further details.
- keyCount | The number of records in the Key arrays. |
- keyAlgorithm:(int)keyIndex | The algorithm of the cryptographic key. |
- keyBits:(int)keyIndex | The length of the key in bits. |
- keyExportable:(int)keyIndex | Returns True if the key is exportable (can be serialized into an array of bytes), and False otherwise. |
- keyHandle:(int)keyIndex | Allows to get or set a 'handle', a unique identifier of the underlying property object. |
- keyID:(int)keyIndex | Provides access to a storage-specific key identifier. |
- keyIV:(int)keyIndex | The initialization vector (IV) of a symmetric key. |
- keyKey:(int)keyIndex | The byte array representation of the key. |
- keyNonce:(int)keyIndex | A nonce value associated with a key. |
- keyPrivate:(int)keyIndex | Returns True if the object hosts a private key, and False otherwise. |
- keyPublic:(int)keyIndex | Returns True if the object hosts a public key, and False otherwise. |
- keySubject:(int)keyIndex | Returns the key subject. |
- keySymmetric:(int)keyIndex | Returns True if the object contains a symmetric key, and False otherwise. |
- keyValid:(int)keyIndex | Returns True if this key is valid. |
- opened | Indicates whether the storage is in the open state. |
- pinnedKeyHandle | Allows to get or set a 'handle', a unique identifier of the underlying property object. |
- selectedKeyCount | The number of records in the SelectedKey arrays. |
- selectedKeyAlgorithm:(int)selectedKeyIndex | The algorithm of the cryptographic key. |
- selectedKeyBits:(int)selectedKeyIndex | The length of the key in bits. |
- selectedKeyExportable:(int)selectedKeyIndex | Returns True if the key is exportable (can be serialized into an array of bytes), and False otherwise. |
- selectedKeyHandle:(int)selectedKeyIndex | Allows to get or set a 'handle', a unique identifier of the underlying property object. |
- selectedKeyID:(int)selectedKeyIndex | Provides access to a storage-specific key identifier. |
- selectedKeyIV:(int)selectedKeyIndex | The initialization vector (IV) of a symmetric key. |
- selectedKeyKey:(int)selectedKeyIndex | The byte array representation of the key. |
- selectedKeyNonce:(int)selectedKeyIndex | A nonce value associated with a key. |
- selectedKeyPrivate:(int)selectedKeyIndex | Returns True if the object hosts a private key, and False otherwise. |
- selectedKeyPublic:(int)selectedKeyIndex | Returns True if the object hosts a public key, and False otherwise. |
- selectedKeySubject:(int)selectedKeyIndex | Returns the key subject. |
- selectedKeySymmetric:(int)selectedKeyIndex | Returns True if the object contains a symmetric key, and False otherwise. |
- selectedKeyValid:(int)selectedKeyIndex | Returns True if this key is valid. |
- storageID | A unique identifier of this storage. |
- storageLocation | Specifies the location of the currently opened storage. |
Method List
The following is the full list of the methods of the class with short descriptions. Click on the links for further details.
- addPinned | Adds the pinned key to the storage. |
- clear | Removes all existing keys from the storage. |
- close | Closes the logical storage. |
- config | Sets or retrieves a configuration setting. |
- createNew | Creates a new storage. |
- importBytes | Adds a key to the storage. |
- importFromFile | Adds a key to the storage. |
- open | Opens existing storage or creates one in memory. |
- refresh | Refreshes all storage keychains. |
- remove | Removes a key from the storage. |
- select | Allows the selection of keys from the store. |
Event List
The following is the full list of the events fired by the class with short descriptions. Click on the links for further details.
- onError | Fires when an errors happens during a key storage operation. |
- onNotification | This event notifies the application about an underlying control flow event. |
- onPasswordNeeded | This event is fired when a decryption password is needed. |
Configuration Settings
The following is a list of configuration settings for the class with short descriptions. Click on the links for further details.
TempPath | Path for storing temporary files. |