1GnuPG::Key(3) User Contributed Perl Documentation GnuPG::Key(3)
2
3
4
6 GnuPG::Key - GnuPG Key Object
7
9 # assumes a GnuPG::Interface object in $gnupg
10 my @keys = $gnupg->get_public_keys( 'ftobin' );
11
12 # now GnuPG::PublicKey objects are in @keys
13
15 GnuPG::Key objects are generally not instantiated on their own, but
16 rather used as a superclass of GnuPG::PublicKey, GnuPG::SecretKey, or
17 GnuPG::SubKey objects.
18
20 Initialization Methods
21
22 new( %initialization_args )
23 This methods creates a new object. The optional arguments are ini‐
24 tialization of data members; the initialization is done in a manner
25 according to the method created as described in "new_hash_init" in
26 Class::MethodMaker.
27
28 hash_init( %args ).
29 This method works as described in "new_hash_init" in Class::Method‐
30 Maker.
31
32 short_hex_id
33 This returns the commonly-used short, 8 character short hex id of
34 the key.
35
37 Note that these data members are interacted with via object methods
38 created using the methods described in "get_set" in Class::MethodMaker,
39 or "object" in Class::MethodMaker. Please read there for more informa‐
40 tion.
41
42 length
43 Number of bits in the key.
44
45 algo_num
46 They algorithm number that the Key is used for.
47
48 hex_data
49 The data of the key.
50
51 hex_id
52 The long hex id of the key. This is not the fingerprint nor the
53 short hex id, which is 8 hex characters.
54
55 creation_date_string =item expiration_date_string
56 Formatted date of the key's creation and expiration.
57
58 fingerprint
59 A GnuPG::Fingerprint object.
60
62 GnuPG::Fingerprint, Class::MethodMaker
63
64
65
66perl v5.8.8 2001-08-21 GnuPG::Key(3)