PGPWriter Component
Properties Methods Events Configuration Settings Errors
The PGPWriter component protects data using PGP keys and certificates.
Syntax
nsoftware.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 component 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. |
EncryptingKeys | The keys to be used for data encryption. |
EncryptionAlgorithm | A symmetric algorithm to use for data encryption. |
ExternalCrypto | Provides access to external signing and DC parameters. |
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. |
SigningKeys | The keys to be used for signing. |
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 component 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. |
ClearTextSignStream | 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. |
EncryptAndSignStream | Encrypts and signs a stream. |
EncryptAndSignString | Encrypts and signs a string. |
EncryptFile | Encrypts a file. |
EncryptFolder | Encrypts a folder. |
EncryptStream | Encrypts a stream. |
EncryptString | Encrypts a string. |
Sign | Signs a buffer. |
SignFile | Signs a file. |
SignFolder | Signs a folder. |
SignStream | Signs a stream. |
SignString | Signs a string. |
Event List
The following is the full list of the events fired by the component 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 component 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 component (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 components 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. |