GnuPG:...ribute(3pm)

πŸ’– NAME πŸ’–

Bestie, meet GnuPG::UserAttribute β€” the GnuPG User Attribute Objects page. This one's hanging out in the User Contributed Perl Documentation manual under the page name GnuPG:...ribute(3pm).

✨ SYNOPSIS ✨

Okay so picture this: you've already got a GnuPG::PublicKey object chilling in $publickey. You want that subpacket total size? It's giving:

  # assumes a GnuPG::PublicKey object in $publickey
  my $jpgs_size = $publickey->user_attributes->[0]->subpacket_total_size();

🌸 DESCRIPTION 🌸

GnuPG::UserAttribute objects are lowkey not something you instantiate all by themselves. They show up as part of GnuPG::PublicKey or GnuPG::SecretKey objects. Periodt. πŸ’…

πŸ› οΈ OBJECT METHODS πŸ› οΈ

⭐ new( %initialization_args ) ⭐

This method creates a new object. The optional arguments? They're for initializing data members. Easy peasy.

πŸŽ€ OBJECT DATA MEMBERS πŸŽ€

πŸ¦‹ validity πŸ¦‹

A scalar holding the value GnuPG reports for the calculated validity of the binding between this User Attribute packet and its associated primary key. For the full tea, check GnuPG's DETAILS file.

πŸ“ subpacket_count πŸ“

A scalar holding the number of attribute subpackets. Usually that's 1, because most UATs seen in the wild contain a single image in JPEG format. Iconic.

πŸ”₯ subpacket_total_size πŸ”₯

A scalar holding the total byte count of all attribute subpackets. That's the whole size vibe.

🌈 signatures 🌈

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

πŸ’œ revocations πŸ’œ

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

πŸ’€ BUGS πŸ’€

No useful information about the embedded attributes is provided yet. It would be nice to be able to get ahold of the raw JPEG material. Bestie, we're manifesting it. πŸ™ˆ

πŸ‘€ SEE ALSO πŸ‘€

GnuPG::Signature,


This page is from perl v5.40.1, dated 2025-03-14, and it's the GnuPG:...ribute(3pm) page. Bye bestie, slay your GnuPG journey! πŸ’œ

πŸ“¦ where this page comes from