Class: openpgp_packet_userattribute

openpgp_packet_userattribute

Implementation of the User Attribute Packet (Tag 17) The User Attribute packet is a variation of the User ID packet. It is capable of storing more types of data than the User ID packet, which is limited to text. Like the User ID packet, a User Attribute packet may be certified by the key owner ("self-signed") or any other key owner who cares to certify it. Except as noted, a User Attribute packet may be used anywhere that a User ID packet may be used. While User Attribute packets are not a required part of the OpenPGP standard, implementations SHOULD provide at least enough compatibility to properly handle a certification signature on the User Attribute packet. A simple way to do this is by treating the User Attribute packet as a User ID packet with opaque contents, but an implementation may use any method desired.

new openpgp_packet_userattribute

Source:
  • openpgp.js, line 1965

Methods

<inner> read_nodes

Continue parsing packets belonging to the user attribute packet such as signatures
Parameters:
Name Type Description
parent_node openpgp_* the parent object
input String input string to read the packet(s) from
position integer start position for the parser
len integer length of the packet(s) or remaining length of input
Source:
  • openpgp.js, line 2041
Returns:
length of nodes read
Type
integer

<inner> read_packet

parsing function for a user attribute packet (tag 17).
Parameters:
Name Type Description
input string payload of a tag 17 packet
position integer position to start reading from the input string
len integer length of the packet or the remaining length of input at position
Source:
  • openpgp.js, line 1979
Returns:
object representation
Type
openpgp_packet_encrypteddata

<inner> toString

generates debug output (pretty print)
Source:
  • openpgp.js, line 2024
Returns:
String which gives some information about the user attribute packet
Type
string