new Userid()
Implementation of the User ID Packet (Tag 13)
A User ID packet consists of UTF-8 text that is intended to represent the name and email address of the key holder. By convention, it includes an RFC 2822 [RFC2822] mail name-addr, but there are no restrictions on its content. The packet length in the header specifies the length of the User ID.
- Source:
Members
userid :String
A string containing the user id. Usually in the form John Doe john@example.com
Type:
- String
- Source:
Methods
format()
Set userid string from object, e.g. { name:'Phil Zimmermann', email:'[email protected]' }
- Source:
parse()
Parse userid string, e.g. 'John Doe john@example.com'
- Source:
read(input)
Parsing function for a user id packet (tag 13).
Parameters:
Name | Type | Description |
---|---|---|
input |
Uint8Array | payload of a tag 13 packet |
- Source:
write() → {Uint8Array}
Creates a binary representation of the user id packet
- Source:
Returns:
binary representation
- Type
- Uint8Array