SecureBlackbox 2020 Python Edition

Questions / Feedback?

PGPKeyManager Class

Properties   Methods   Events   Configuration Settings   Errors  

The PGPKeyManager class manages PGP keys.

Syntax

class secureblackbox.PGPKeyManager

Remarks

PGPKeyManager allows you to load, save, generate, import, and export PGP keys.

Property List


The following is the full list of the properties of the class with short descriptions. Click on the links for further details.

key_bits_in_keyIndicates the key length in bits.
key_curveIndicates the elliptic curve associated with a EC key.
key_encryption_algorithmIndicates the symmetric algorithm used to encrypt the secret key.
key_expiresIndicates key expiration time in whole days from its generation moment.
key_handleAllows to get or set a 'handle', a unique identifier of the underlying property object.
key_hash_algorithmSpecifies the hash algorithm associated with the key.
key_old_packet_formatIndicates whether legacy (PGP 2.
key_passphraseThe key protection password.
key_protectionSpecifies the level of protection applied to the secret key.
key_public_key_algorithmSpecifies the asymmetric algorithm of the key.
key_q_bitsThe length of the DSA Q (legitimate range: 160-512).
key_usernameSpecifies the name of the user bound to this key.

Method List


The following is the full list of the methods of the class with short descriptions. Click on the links for further details.

add_subkeyAdds a new subkey to the Key.
bind_userBinds a new UserID to the Key.
change_passphraseChanges the password of the secret key.
change_protectionChanges the protection level of the secret key.
check_passphraseChecks if the password matches the secret key.
configSets or retrieves a configuration setting.
export_keySerializes the key to a byte array.
export_public_keyExports the public key to a byte array.
export_public_to_fileExports the public key to a file.
export_to_fileExports the key to a file.
generateGenerates a new single PGP key.
generate_legacyGenerates a new key in the old format.
generate_pairGenerates a new pair of PGP keys.
import_from_fileLoads a key from a file.
import_keyLoads a key from a byte array.
remove_subkeyRemoves the specified subkey from the key.
remove_userUnbinds the specified user from the key.
revoke_keyRevokes the key.
revoke_subkeyRevokes the key's subkey.
revoke_subkeyby_idRevokes the key's subkey.
revoke_userRevokes a user certification.
revoke_user_by_nameRevokes a user certification.
validateValidates the key.

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.

on_errorInformation about errors during PGP key management.
on_notificationThis event notifies the application about an underlying control flow event.

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.
CheckKeyIntegrityBeforeUseEnables or disable private key integrity check before use.
CookieCachingSpecifies whether a cookie cache should be used for HTTP(S) transports.
CookiesGets or sets local cookies for the class (supported for HTTPClient, RESTClient and SOAPClient only).
DefDeriveKeyIterationsSpecifies the default key derivation algorithm iteration count.
EnableClientSideSSLFFDHEEnables or disables finite field DHE key exchange support in TLS clients.
GlobalCookiesGets or sets global cookies for all the HTTP transports.
HttpUserAgentSpecifies the user agent name to be used by all HTTP clients.
LogDestinationSpecifies the debug log destination.
LogDetailsSpecifies the debug log details to dump.
LogFileSpecifies the debug log filename.
LogFiltersSpecifies the debug log filters.
LogFlushModeSpecifies the log flush mode.
LogLevelSpecifies the debug log level.
LogMaxEventCountSpecifies the maximum number of events to cache before further action is taken.
LogRotationModeSpecifies the log rotation mode.
MaxASN1BufferLengthSpecifies the maximal allowed length for ASN.1 primitive tag data.
MaxASN1TreeDepthSpecifies the maximal depth for processed ASN.1 trees.
OCSPHashAlgorithmSpecifies the hash algorithm to be used to identify certificates in OCSP requests.
UseOwnDNSResolverSpecifies whether the client classes should use own DNS resolver.
UseSharedSystemStoragesSpecifies whether the validation engine should use a global per-process copy of the system certificate stores.
UseSystemOAEPAndPSSEnforces or disables the use of system-driven RSA OAEP and PSS computations.
UseSystemRandomEnables or disables the use of the OS PRNG.

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