GnuPG::SecretKey - GnuPG Secret Key Objects
# assumes a GnuPG::Interface object in $gnupg my @keys = $gnupg->get_public_keys( 'ftobin' ); # now GnuPG::PublicKey objects are in @keys
GnuPG::SecretKey objects are generally instantiated through various methods of GnuPG::Interface. They embody various aspects of a GnuPG secret key.
This package inherits data members and object methods from GnuPG::Key, which are not described here, but rather in GnuPG::Key.
Note that these data members are interacted with via object methods created using the methods described in "get_set" in Class::MethodMaker, "object" in Class::MethodMaker, or "list" in Class::MethodMaker. Please read there for more information.
A list of GnuPG::UserId objects associated with this key.
A list of GnuPG::SubKey objects associated with this key.
GnuPG's local id for the key.
The scalar value GnuPG reports as the ownertrust for this key. See GnuPG's DETAILS file for details.
See also GnuPG::Key, GnuPG::UserId, GnuPG::SubKey, and Class::MethodMaker.
To install GnuPG::Interface, copy and paste the appropriate command in to your terminal.
cpanm
cpanm GnuPG::Interface
CPAN shell
perl -MCPAN -e shell install GnuPG::Interface
For more information on module installation, please visit the detailed CPAN module installation guide.