PGPKeyManager Class
Properties Methods Events Configuration Settings Errors
The PGPKeyManager class manages PGP keys.
Syntax
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.
KeyBitsInKey | Indicates the key length in bits. |
KeyCurve | Indicates the elliptic curve associated with a EC key. |
KeyEncryptionAlgorithm | Indicates the symmetric algorithm used to encrypt the secret key. |
KeyExpires | Indicates key expiration time in whole days from its generation moment. |
KeyHandle | Allows to get or set a 'handle', a unique identifier of the underlying property object. |
KeyHashAlgorithm | Specifies the hash algorithm associated with the key. |
KeyOldPacketFormat | Indicates whether legacy (PGP 2. |
KeyPassphrase | The key protection password. |
KeyProtection | Specifies the level of protection applied to the secret key. |
KeyPublicKeyAlgorithm | Specifies the asymmetric algorithm of the key. |
KeyQBits | The length of the DSA Q (legitimate range: 160-512). |
KeyUsername | Specifies 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.
AddSubkey | Adds a new subkey to the Key. |
BindUser | Binds a new UserID to the Key. |
ChangePassphrase | Changes the password of the secret key. |
ChangeProtection | Changes the protection level of the secret key. |
CheckPassphrase | Checks if the password matches the secret key. |
Config | Sets or retrieves a configuration setting. |
ExportKey | Serializes the key to a byte array. |
ExportPublicKey | Exports the public key to a byte array. |
ExportPublicToFile | Exports the public key to a file. |
ExportToFile | Exports the key to a file. |
Generate | Generates a new single PGP key. |
GenerateLegacy | Generates a new key in the old format. |
GeneratePair | Generates a new pair of PGP keys. |
ImportFromFile | Loads a key from a file. |
ImportKey | Loads a key from a byte array. |
RemoveSubkey | Removes the specified subkey from the key. |
RemoveUser | Unbinds the specified user from the key. |
RevokeKey | Revokes the key. |
RevokeSubkey | Revokes the key's subkey. |
RevokeSubkeybyID | Revokes the key's subkey. |
RevokeUser | Revokes a user certification. |
RevokeUserByName | Revokes a user certification. |
Validate | Validates 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.
Error | Information about errors during PGP key management. |
Notification | This 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.
TempPath | Path for storing temporary files. |
CheckKeyIntegrityBeforeUse | Enables or disable private key integrity check before use. |
CookieCaching | Specifies whether a cookie cache should be used for HTTP(S) transports. |
Cookies | Gets or sets local cookies for the class (supported for HTTPClient, RESTClient and SOAPClient only). |
DefDeriveKeyIterations | Specifies the default key derivation algorithm iteration count. |
EnableClientSideSSLFFDHE | Enables or disables finite field DHE key exchange support in TLS clients. |
GlobalCookies | Gets or sets global cookies for all the HTTP transports. |
HttpUserAgent | Specifies the user agent name to be used by all HTTP clients. |
LogDestination | Specifies the debug log destination. |
LogDetails | Specifies the debug log details to dump. |
LogFile | Specifies the debug log filename. |
LogFilters | Specifies the debug log filters. |
LogFlushMode | Specifies the log flush mode. |
LogLevel | Specifies the debug log level. |
LogMaxEventCount | Specifies the maximum number of events to cache before further action is taken. |
LogRotationMode | Specifies the log rotation mode. |
MaxASN1BufferLength | Specifies the maximal allowed length for ASN.1 primitive tag data. |
MaxASN1TreeDepth | Specifies the maximal depth for processed ASN.1 trees. |
OCSPHashAlgorithm | Specifies the hash algorithm to be used to identify certificates in OCSP requests. |
UseOwnDNSResolver | Specifies whether the client classes should use own DNS resolver. |
UseSharedSystemStorages | Specifies whether the validation engine should use a global per-process copy of the system certificate stores. |
UseSystemOAEPAndPSS | Enforces or disables the use of system-driven RSA OAEP and PSS computations. |
UseSystemRandom | Enables or disables the use of the OS PRNG. |