Class: PublicKey

PublicKey(packetlist)

Class that represents an OpenPGP Public Key

Constructor

new PublicKey(packetlist)

Parameters:
Name Type Description
packetlist PacketList

The packets that form this key

Source:

Methods

armor(configopt) → {ReadableStream.<String>}

Returns ASCII armored text of key

Parameters:
Name Type Attributes Description
config Object <optional>

Full configuration, defaults to openpgp.config

Source:
Returns:

ASCII armor.

Type
ReadableStream.<String>

isPrivate() → {false}

Returns true if this is a private key

Source:
Returns:
Type
false

toPublic() → {PublicKey}

Returns key as public key (shallow copy)

Source:
Returns:

New public Key

Type
PublicKey