Class GPGME::GpgmeCtx
In: lib/gpgme.rb
Parent: Object

A context within which all cryptographic operations are performed.

Methods

Attributes

passphrase_cb  [R]  An array which contains a Proc and an Object. The former is the passphrase callback and the latter is hook value passed to it.
progress_cb  [R]  An array which contains a Proc and an Object. The former is the progress callback used when progress information is available and the latter is hook value passed to it.

Public Class methods

Create a new GpgmeCtx object.

Public Instance methods

Add the key to the list of signers.

Return true if the output is ASCII armored.

Tell whether the output should be ASCII armored.

Removes the list of signers from this object.

Decrypt the ciphertext and return the plaintext.

Delete the key from the key ring. If allow_secret is false, only public keys are deleted, otherwise secret keys are deleted as well.

Encrypt the plaintext in the data object for the recipients and return the ciphertext.

Extracts the public keys of the recipients.

Generates a new key pair. If store is true, this method puts the key pair into the standard key ring.

Add the keys in the data buffer to the key ring.

End a pending key list operation.

Returns the current key listing mode.

Change the default behaviour of the key listing functions.

Returns the next key in the list created by a previous keylist_start operation.

Initiates a key listing operation for given pattern. If pattern is nil, all available keys are returned. If secret_only is true, the list is restricted to secret keys only.

Return the protocol used within this context.

Set the protocol used within this context.

Set the passphrase callback with given hook value.

Set the progress callback with given hook value.

Create a signature for the text in the data object.

Return true if canonical text mode is enabled.

Tell whether canonical text mode should be used.

Verify that the signature in the data object is a valid signature.

[Validate]