In Files

Parent

GPGME::Signature

Attributes

fingerprint[R]
fpr[R]
notations[R]
pka_address[R]
pka_trust[R]
status[R]
summary[R]
validity[R]
validity_reason[R]
wrong_key_usage[R]

Public Instance Methods

exp_timestamp() click to toggle source
# File lib/gpgme.rb, line 1482
def exp_timestamp
  Time.at(@exp_timestamp)
end
timestamp() click to toggle source
# File lib/gpgme.rb, line 1478
def timestamp
  Time.at(@timestamp)
end
to_s() click to toggle source
# File lib/gpgme.rb, line 1486
def to_s
  ctx = Ctx.new
  if from_key = ctx.get_key(fingerprint)
    from = "#{from_key.subkeys[0].keyid} #{from_key.uids[0].uid}"
  else
    from = fingerprint
  end
  case GPGME::gpgme_err_code(status)
  when GPGME::GPG_ERR_NO_ERROR
    "Good signature from #{from}"
  when GPGME::GPG_ERR_SIG_EXPIRED
    "Expired signature from #{from}"
  when GPGME::GPG_ERR_KEY_EXPIRED
    "Signature made from expired key #{from}"
  when GPGME::GPG_ERR_CERT_REVOKED
    "Signature made from revoked key #{from}"
  when GPGME::GPG_ERR_BAD_SIGNATURE
    "Bad signature from #{from}"
  when GPGME::GPG_ERR_NO_ERROR
    "No public key for #{from}"
  end
end

[Validate]

Generated with the Darkfish Rdoc Generator 2.