class

GPGME::Key

Inherits Reference < Object

Represents a GPG key with its metadata

Constructors

new(fingerprint : String, keyid : String, can_encrypt : Bool, can_sign : Bool, can_certify : Bool, can_authenticate : Bool, is_secret : Bool, is_expired : Bool, is_revoked : Bool, is_disabled : Bool, is_invalid : Bool, user_ids : Array(GPGME::UserID), subkeys : Array(GPGME::SubKey))
Source

Instance methods

can_authenticate
Source
can_certify
Source
can_encrypt
Source
can_sign
Source
email

Returns the primary email address

Source
fingerprint
Source
is_disabled
Source
is_expired
Source
is_invalid
Source
is_revoked
Source
is_secret
Source
keyid
Source
name

Returns the primary name

Source
primary_uid

Returns the primary user ID (name and email)

Source
subkeys
Source
to_s(io : IO)

Appends a short String representation of this object which includes its class name and its object address.

class Person
  def initialize(@name : String, @age : Int32)
  end
end

Person.new("John", 32).to_s # => #<Person:0x10a199f20>
Source
user_ids
Source