| Modifier and Type | Field and Description |
|---|---|
| private int | |
| private byte[][] | |
| private byte[] | |
| private long | |
| private int | |
| private int | |
| public static final int | VERSION_3
Version 3 PKESK packet. |
| public static final int | VERSION_6
Version 6 PKESK packet. |
| Access | Constructor and Description |
|---|---|
| pack-priv | |
| pack-priv | |
| public | PublicKeyEncSessionPacket(long
ID of the recipient key, 0 for anonymous keyID, int public key algorithm algorithm, byte[][] session data data)Create a new V3 PKESK packet. |
| public | PublicKeyEncSessionPacket(int
version of the key keyVersion, byte[] fingerprint of the key keyFingerprint, int public key algorithm algorithm, byte[][] session data data)Create a new V6 PKESK packet. |
| Modifier and Type | Method and Description |
|---|---|
| public static PublicKeyEncSessionPacket | createV3PKESKPacket(long
ID of the recipient key, 0 for anonymous keyID, int public key algorithm algorithm, byte[][] session data data)Create a new V3 PKESK packet. |
| public static PublicKeyEncSessionPacket | createV6PKESKPacket(int
version of the key keyVersion, byte[] fingerprint of the key keyFingerprint, int public key algorithm algorithm, byte[][] session data data)Create a new V6 PKESK packet. |
| public void | |
| public int | |
| public byte[][] | |
| public byte[] | |
| public long | |
| public int | |
| public int |
| algorithm | back to summary |
|---|---|
| private int algorithm | |
| data | back to summary |
|---|---|
| private byte[][] data | |
| keyFingerprint | back to summary |
|---|---|
| private byte[] keyFingerprint | |
| keyID | back to summary |
|---|---|
| private long keyID | |
| keyVersion | back to summary |
|---|---|
| private int keyVersion | |
| version | back to summary |
|---|---|
| private int version | |
| VERSION_3 | back to summary |
|---|---|
| public static final int VERSION_3 Version 3 PKESK packet.
Used only with | |
| VERSION_6 | back to summary |
|---|---|
| public static final int VERSION_6 Version 6 PKESK packet.
Used only with | |
| PublicKeyEncSessionPacket | back to summary |
|---|---|
| pack-priv PublicKeyEncSessionPacket(BCPGInputStream in) throws IOException | |
| PublicKeyEncSessionPacket | back to summary |
|---|---|
| pack-priv PublicKeyEncSessionPacket(BCPGInputStream in, boolean newPacketFormat) throws IOException | |
| PublicKeyEncSessionPacket | back to summary |
|---|---|
| public PublicKeyEncSessionPacket(long keyID, int algorithm, byte[][] data) Create a new V3 PKESK packet.
| |
| PublicKeyEncSessionPacket | back to summary |
|---|---|
| public PublicKeyEncSessionPacket(int keyVersion, byte[] keyFingerprint, int algorithm, byte[][] data) Create a new V6 PKESK packet.
| |
| createV3PKESKPacket | back to summary |
|---|---|
| public static PublicKeyEncSessionPacket createV3PKESKPacket(long keyID, int algorithm, byte[][] data) Create a new V3 PKESK packet.
| |
| createV6PKESKPacket | back to summary |
|---|---|
| public static PublicKeyEncSessionPacket createV6PKESKPacket(int keyVersion, byte[] keyFingerprint, int algorithm, byte[][] data) Create a new V6 PKESK packet.
| |
| encode | back to summary |
|---|---|
| public void encode(BCPGOutputStream out) throws IOException Implements abstract org. | |
| getAlgorithm | back to summary |
|---|---|
| public int getAlgorithm() Return the public key algorithm of the recipient key.
| |
| getEncSessionKey | back to summary |
|---|---|
| public byte[][] getEncSessionKey() | |
| getKeyFingerprint | back to summary |
|---|---|
| public byte[] getKeyFingerprint() Return the fingerprint of the recipient key. If the recipient key is anonymous, this method returns an empty array. V6 PKESK packet only.
| |
| getKeyID | back to summary |
|---|---|
| public long getKeyID() Return the id of the recipient key. V3 PKESK only. Todo Add conversion from fingerprint to key-id for V6 PKESK?
| |
| getKeyVersion | back to summary |
|---|---|
| public int getKeyVersion() Return the version number of the recipient key. If the recipient key is anonymous, this method returns 0. V6 PKESK packet only.
| |
| getVersion | back to summary |
|---|---|
| public int getVersion() Return the version of this PKESK packet.
| |