Jonathan Rockway > Angerwhale-0.062 > Angerwhale::Signature

Download:
Angerwhale-0.062.tar.gz

Dependencies

Annotate this POD

CPAN RT

Open  1
View Bugs
Report a bug
Source  

METHODS ^

signor

Returns the key id of the message's signor, or 0 if the message is not signed.

signed

Returns true if the signature is good, false otherwise.

More detail:

1

means the signature was actually checked

2

means "signed=yes" was read as an attribute from cache

0

BAD SIGNATURE!

undef

message was not signed

_check_signature($message)

Checks the OpenPGP signature on $message. Returns the real (binary) key id if the signature is valid. Raises an exception on error.

Warning: slow. It is best to cache the result, if possible.

signed_text($message)

Given PGP-signed $message, returns the plaintext of that message. Throws an exception on error.

In array context, returns an list (data, signature), where data is a Crypt::OpenPGP::PlainText and signature isa Crypt::OpenPGP::Signature ora Crypt::OpenPGP::OnePassSig.

_cached_signature ^

Returns the cached signature; true for "signature ok", false for "signature not ok" (or no signature).

_cached_signature ^

Sets the cached signature to true.