class

Selen::Crypto::Keyring

Inherits Reference < Object

Maintains an in-memory mapping of fingerprint → user info and delegates key import/export to PGP module.

Constructors

Instance methods

add(nickname : String, name_color : Int32, armored_public_key : String) : String

Add or update a key entry. Imports into the GPG homedir. Returns the fingerprint.

Source
add_local(fingerprint : String, nickname : String, name_color : Int32, armored_public_key : String) : Nil

Add an entry for a key that's already in the GPG homedir.

Source
all

Returns all entries.

Source
fingerprints

Returns all fingerprints currently in the keyring.

Source
get(fingerprint : String) : KeyEntry | Nil

Look up an entry by fingerprint. Returns nil if not found.

Source
has?(fingerprint : String) : Bool

Returns true if the fingerprint is known.

Source
remove(fingerprint : String) : Nil

Remove an entry by fingerprint.

Source
size

Number of keys in the ring.

Source

Nested types