GnuPG::UserId(3pm)

GnuPG::UserId3pm

Gnupg user id objects

Usage

  # assumes a GnuPG::PublicKey object in $publickey
  my $user_id = $publickey->user_ids_ref->[0]->as_string;

Overview

GnuPG::UserId objects are generally not instantiated on their own, but rather as part of GnuPG::PublicKey or GnuPG::SecretKey objects.

Object methods

new( %initialization_args )

This methods creates a new object. The optional arguments are initialization of data members;

compare( $other, $deep )

Returns non-zero only when this User ID is identical to the other GnuPG::UserID. If $deep is present and non-zero, the User ID's signatures and revocations will also be compared.

Object data members

as_string

A string of the user id.

validity

A scalar holding the value GnuPG reports for the trust of authenticity (a.k.a.) validity of a key. See GnuPG's DETAILS file for details.

signatures

A list of GnuPG::Signature objects embodying the signatures on this user id.

revocations

A list of revocations associated with this User ID, stored as GnuPG::Signature objects (since revocations are a type of certification as well).

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.