PGPWriter Class
Properties Methods Events Configuration Settings Errors
The PGPWriter class protects data using PGP keys and certificates.
Syntax
secureblackbox.pgpwriter()
Remarks
PGPWriter allows you to encrypt, sign, armor, and compress the input data.
Property List
The following is the full list of the properties of the class with short descriptions. Click on the links for further details.
Armor | Specifies whether the data should be armored. |
ArmorBoundary | A boundary to put around the base64 armor. |
ArmorHeaders | Additional headers to include with the armored message. |
Compress | Whether to compress the data before encrypting it. |
CompressionAlgorithm | The compression algorithm to use. |
CompressionLevel | The compression level to use. |
EncryptingKeyCount | The number of records in the EncryptingKey arrays. |
EncryptingKeyHandle | Allows to get or set a 'handle', a unique identifier of the underlying property object. |
EncryptingKeyKeyFP | The 20-byte fingerprint (hash value) of this key. |
EncryptingKeyKeyID | Contains a 8-byte key identifier. |
EncryptingKeyUsername | Specifies the name of the user bound to this key. |
EncryptionAlgorithm | A symmetric algorithm to use for data encryption. |
ExternalCryptoCustomParams | Custom parameters to be passed to the signing service (uninterpreted). |
ExternalCryptoData | Additional data to be included in the async state and mirrored back by the requestor. |
ExternalCryptoExternalHashCalculation | Specifies whether the message hash is to be calculated at the external endpoint. |
ExternalCryptoHashAlgorithm | Specifies the request's signature hash algorithm. |
ExternalCryptoKeyID | The ID of the pre-shared key used for DC request authentication. |
ExternalCryptoKeySecret | The pre-shared key used for DC request authentication. |
ExternalCryptoMethod | Specifies the asynchronous signing method. |
ExternalCryptoMode | Specifies the external cryptography mode. |
ExternalCryptoPublicKeyAlgorithm | Provide public key algorithm here if the certificate is not available on the pre-signing stage. |
Filename | Specifies the name of the file being protected. |
HashAlgorithm | The hash algorithm to use for signing. |
InputIsText | Whether the input data is text. |
Passphrase | The encryption password. |
Profile | Specifies a pre-defined profile to apply when creating the signature. |
Protection | Specifies a password protection level. |
SigningKeyCount | The number of records in the SigningKey arrays. |
SigningKeyHandle | Allows to get or set a 'handle', a unique identifier of the underlying property object. |
SigningKeyKeyFP | The 20-byte fingerprint (hash value) of this key. |
SigningKeyKeyID | Contains a 8-byte key identifier. |
SigningKeyPassphrase | The key protection password. |
SigningKeyPassphraseValid | Use this property to check whether the specified Passphrase is valid and can be used to unlock the secret key. |
SigningKeyUsername | Specifies the name of the user bound to this key. |
Timestamp | The date and time of the last modification of the protected data file (in UTC). |
Method List
The following is the full list of the methods of the class with short descriptions. Click on the links for further details.
ClearTextSign | Creates a cleartext signature over the provided data. |
ClearTextSignFile | Creates a cleartext signature over the provided data. |
ClearTextSignString | Creates a cleartext signature over the provided data. |
Config | Sets or retrieves a configuration setting. |
Encrypt | Encrypts a buffer. |
EncryptAndSign | Encrypts and signs a buffer. |
EncryptAndSignFile | Encrypts and signs a file. |
EncryptAndSignFolder | Encrypts and signs a folder. |
EncryptAndSignString | Encrypts and signs a string. |
EncryptFile | Encrypts a file. |
EncryptFolder | Encrypts a folder. |
EncryptString | Encrypts a string. |
Sign | Signs a buffer. |
SignFile | Signs a file. |
SignFolder | Signs a folder. |
SignString | Signs a string. |
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 encryption. |
ExternalSign | Handles remote or external signing initiated by the SignExternal method or other source. |
KeyPassphraseNeeded | Requests a key protection password from the application. |
Notification | This event notifies the application about an underlying control flow event. |
Progress | Reports the progress of the decryption operation. |
Configuration Settings
The following is a list of configuration settings for the class with short descriptions. Click on the links for further details.
PasswordAttempts | The number of attempts allowed for entering password. |
PreserveFilePaths | Whether to preserve full file names when saving the PGP file. |
SignBufferingMethod | The type of buffering used during signing. |
TempPath | Path for storing temporary files. |
TextCompatibilityMode | Whether whitespaces must be trimmed from the signature. |
UndefInputLength | Set this property if you are working with non-seekable streams. |
UseNewFeatures | Whether the new algorithms, or only the algorithms compatible with PGP 2.6.x, are allowed. |
UseOldPackets | Whether signature packets of old format, compatible with PGP 2.6.3, should be used. |
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. |