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:

Methods

<inner> read_nodes(parent_node, input, position, len) → {Integer}

Continue parsing packets belonging to the user attribute packet such as signatures
Parameters:
Name Type Description
parent_node Object 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:
Returns:
length of nodes read
Type
Integer

<inner> read_packet(input, position, len) → {openpgp_packet_encrypteddata}

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:
Returns:
object representation
Type
openpgp_packet_encrypteddata

<inner> toString() → {String}

generates debug output (pretty print)
Source:
Returns:
String which gives some information about the user attribute packet
Type
String