public class OPENPGPKEY extends Data
| Constructor and Description |
|---|
OPENPGPKEY(byte[] publicKeyPacket)Create an OPENPGPKEY record |
| Modifier and Type | Method and Description |
|---|---|
byte[] | getPublicKeyPacket()Get the public key packet data |
String | getPublicKeyPacketBase64()Get the public key packet as a Base64-encoded string |
Record.TYPE | getType()The payload type. |
static OPENPGPKEY | parse(DataInputStream dis,
int length)Parse an OPENPGPKEY record from a data input stream. |
void | serialize(DataOutputStream dos)The internal method used to serialize Data subclasses. |
String | toString() |
equals, hashCode, length, toByteArray, toOutputStream, toOutputStreamOPENPGPKEY(byte[] publicKeyPacket)
publicKeyPacket - the public key packet datapublic byte[] getPublicKeyPacket()
public String getPublicKeyPacketBase64()
public Record.TYPE getType()
Datapublic static OPENPGPKEY parse(DataInputStream dis, int length) throws IOException
dis - the data input streamlength - the record lengthIOException - if reading failspublic void serialize(DataOutputStream dos) throws IOException
Dataserialize in class Datados - the output stream to serialize to.IOException - if an I/O error occurs.