SecureBlackbox Lite 2020 Qt Edition

Questions / Feedback?

CryptoKeyStorage Class

Properties   Methods   Events   Configuration Settings   Errors  

The CryptoKeyStorage class offers key storage functionality for a variety of key store types.

Syntax

CryptoKeyStorage

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.

KeyCountThe number of records in the Key arrays.
KeyAlgorithmThe algorithm of the cryptographic key.
KeyBitsThe length of the key in bits.
KeyExportableReturns True if the key is exportable (can be serialized into an array of bytes), and False otherwise.
KeyHandleAllows to get or set a 'handle', a unique identifier of the underlying property object.
KeyIDProvides access to a storage-specific key identifier.
KeyIVThe initialization vector (IV) of a symmetric key.
KeyKeyThe byte array representation of the key.
KeyNonceA nonce value associated with a key.
KeyPrivateReturns True if the object hosts a private key, and False otherwise.
KeyPublicReturns True if the object hosts a public key, and False otherwise.
KeySubjectReturns the key subject.
KeySymmetricReturns True if the object contains a symmetric key, and False otherwise.
KeyValidReturns True if this key is valid.
OpenedIndicates whether the storage is in the open state.
PinnedKeyHandleAllows to get or set a 'handle', a unique identifier of the underlying property object.
SelectedKeyCountThe number of records in the SelectedKey arrays.
SelectedKeyAlgorithmThe algorithm of the cryptographic key.
SelectedKeyBitsThe length of the key in bits.
SelectedKeyExportableReturns True if the key is exportable (can be serialized into an array of bytes), and False otherwise.
SelectedKeyHandleAllows to get or set a 'handle', a unique identifier of the underlying property object.
SelectedKeyIDProvides access to a storage-specific key identifier.
SelectedKeyIVThe initialization vector (IV) of a symmetric key.
SelectedKeyKeyThe byte array representation of the key.
SelectedKeyNonceA nonce value associated with a key.
SelectedKeyPrivateReturns True if the object hosts a private key, and False otherwise.
SelectedKeyPublicReturns True if the object hosts a public key, and False otherwise.
SelectedKeySubjectReturns the key subject.
SelectedKeySymmetricReturns True if the object contains a symmetric key, and False otherwise.
SelectedKeyValidReturns True if this key is valid.
StorageIDA unique identifier of this storage.
StorageLocationSpecifies 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.

AddPinnedAdds the pinned key to the storage.
ClearRemoves all existing keys from the storage.
CloseCloses the logical storage.
ConfigSets or retrieves a configuration setting.
CreateNewCreates a new storage.
ImportBytesAdds a key to the storage.
ImportFromFileAdds a key to the storage.
OpenOpens existing storage or creates one in memory.
RefreshRefreshes all storage keychains.
RemoveRemoves a key from the storage.
SelectAllows 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.

ErrorFires when an errors happens during a key storage operation.
NotificationThis event notifies the application about an underlying control flow event.
PasswordNeededThis 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.

TempPathPath for storing temporary files.

Copyright (c) 2022 /n software inc. - All rights reserved.
SecureBlackbox Lite 2020 Qt Edition - Version 20.0 [Build 8166]