1GnuPG::Signature(3) User Contributed Perl Documentation GnuPG::Signature(3)
2
3
4
6 GnuPG::Signature - GnuPG Key Signature Objects
7
9 # assumes a GnuPG::Key or GnuPG::UserID or GnuPG::UserAttribute object in $signed
10 my $signing_id = $signed->signatures->[0]->hex_id();
11
13 GnuPG::Signature objects are generally not instantiated on their own,
14 but rather as part of GnuPG::Key objects. They embody various aspects
15 of a GnuPG signature on a key.
16
18 new( %initialization_args )
19 This methods creates a new object. The optional arguments are
20 initialization of data members.
21
22 is_valid()
23 Returns 1 if GnuPG was able to cryptographically verify the
24 signature, otherwise 0.
25
26 compare( $other )
27 Returns non-zero only when this Signature is identical to the other
28 GnuPG::Signature.
29
31 validity
32 A character indicating the cryptographic validity of the key.
33 GnuPG uses at least the following characters: "!" means valid, "-"
34 means not valid, "?" means unknown (e.g. if the supposed signing
35 key is not present in the local keyring), and "%" means an error
36 occurred (e.g. a non-supported algorithm). See the documentation
37 for --check-sigs in gpg(1).
38
39 algo_num
40 The number of the algorithm used for the signature.
41
42 hex_id
43 The hex id of the signing key.
44
45 user_id_string
46 The first user id string on the key that made the signature. This
47 may not be defined if the signing key is not on the local keyring.
48
49 sig_class
50 Signature class. This is the numeric value of the class of
51 signature.
52
53 A table of possible classes of signatures and their numeric types
54 can be found at http://tools.ietf.org/html/rfc4880#section-5.2.1
55
56 is_exportable
57 returns 0 for local-only signatures, non-zero for exportable
58 signatures.
59
60 date_string
61 The formatted date the signature was performed on.
62
63 date
64 The date the signature was performed, represented as the number of
65 seconds since midnight 1970-01-01 UTC.
66
67 expiration_date_string
68 The formatted date the signature will expire (signatures without
69 expiration return undef).
70
71 expiration_date
72 The date the signature will expire, represented as the number of
73 seconds since midnight 1970-01-01 UTC (signatures without
74 expiration return undef)
75
77perl v5.34.0 2021-07-22 GnuPG::Signature(3)