Object
# File lib/gpgme.rb, line 1482 def exp_timestamp Time.at(@exp_timestamp) end
# File lib/gpgme.rb, line 1478 def timestamp Time.at(@timestamp) end
# 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
Generated with the Darkfish Rdoc Generator 2.