GnuPG::PrimaryKey(3pm)

GnuPG::PrimaryKey3pm

Gnupg primary key objects

Usage

  # assumes a GnuPG::Interface object in $gnupg
  my @keys = $gnupg->get_public_keys( 'ftobin' );
  # or
  my @keys = $gnupg->get_secret_keys( 'ftobin' );
  # now GnuPG::PrimaryKey objects are in @keys

Overview

GnuPG::PrimaryKey objects are generally instantiated as GnuPG::PublicKey or GnuPG::SecretKey objects through various methods of GnuPG::Interface. They embody various aspects of a GnuPG primary key.

This package inherits data members and object methods from GnuPG::Key, which is not described here, but rather in GnuPG::Key.

Object data members

user_ids

A list of GnuPG::UserId objects associated with this key.

user_attributes

A list of GnuPG::UserAttribute objects associated with this key.

subkeys

A list of GnuPG::SubKey objects associated with this key.

local_id

WARNING: DO NOT USE. This used to mean GnuPG's local id for the key, but modern versions of GnuPG do not produce it. Expect this to be the empty string or undef.

owner_trust

The scalar value GnuPG reports as the ownertrust for this key. See GnuPG's DETAILS file for details.

Releases

13 releases since Debian 3.0 (Woody); the text changed 12 times.

  1. 3.0
  2. 3.1
  3. 4.0
  4. 5.0
  5. 6.0
  6. 7
  7. 8
  8. 9
  9. 10
  10. 11
  11. 12
  12. 13
  13. Arch

From perl-gnupg-interface 1.07-1 in Arch Linux 2026-11-01. Parsed by carta from the page's man source.