C# Класс SSIS.Extensions.PGPTask.PgpEncryptionKeys

Показать файл Открыть проект Примеры использования класса

Открытые методы

Метод Описание
PgpEncryptionKeys ( string publicKeyPath, string privateKeyPath, string passPhrase ) : System

Initializes a new instance of the EncryptionKeys class. Two keys are required to encrypt and sign data. Your private key and the recipients public key. The data is encrypted with the recipients public key and signed with your private key.

Приватные методы

Метод Описание
GetFirstPublicKey ( PgpPublicKeyRingBundle publicKeyRingBundle ) : PgpPublicKey
GetFirstSecretKey ( PgpSecretKeyRingBundle secretKeyRingBundle ) : PgpSecretKey

Return the first key we can use to encrypt. Note: A file can contain multiple keys (stored in "key rings")

ReadPrivateKey ( string passPhrase ) : PgpPrivateKey
ReadPublicKey ( string publicKeyPath ) : PgpPublicKey
ReadSecretKey ( string privateKeyPath ) : PgpSecretKey

Описание методов

PgpEncryptionKeys() публичный Метод

Initializes a new instance of the EncryptionKeys class. Two keys are required to encrypt and sign data. Your private key and the recipients public key. The data is encrypted with the recipients public key and signed with your private key.
Public key not found. Private key not found. Missing password
public PgpEncryptionKeys ( string publicKeyPath, string privateKeyPath, string passPhrase ) : System
publicKeyPath string The key used to encrypt the data
privateKeyPath string The key used to sign the data.
passPhrase string The (your) password required to access the private key
Результат System