This holder supports reading a sequence of the following encryption methods, followed by an encrypted data packet:
PacketTags#SYMMETRIC_KEY_ENC_SESSION - produces a PGPPBEEncryptedDataPacketTags#PUBLIC_KEY_ENC_SESSION - produces a PGPPublicKeyEncryptedDataAll of the objects returned from this holder share a reference to the same encrypted data input stream, which can only be consumed once.
| Modifier and Type | Field and Description |
|---|---|
| pack-priv InputStreamPacket | |
| private static final Logger | |
| pack-priv List |
| Access | Constructor and Description |
|---|---|
| public | PGPEncryptedDataList(byte[]
a byte array containing an encrypted stream. encData)Construct an encrypted data packet holder, reading PGP encrypted method packets and an encrypted data packet from a stream. |
| public | PGPEncryptedDataList(InputStream
the input stream being read. inStream)Construct an encrypted data packet holder, reading PGP encrypted method packets and an encrypted data packet from a stream. |
| public | PGPEncryptedDataList(BCPGInputStream
the PGP object stream being read. pIn)Construct an encrypted data packet holder, reading PGP encrypted method packets and an encrypted data packet from the stream. |
| Modifier and Type | Method and Description |
|---|---|
| public PGPSessionKeyEncryptedData | Returns: session key encrypted dataCreate a decryption method using a |
| public PGPEncryptedData | get(int
the encryption method to obtain (0 based). index)Gets the encryption method object at the specified index. |
| public Iterator | getEncryptedDataObjects()
Returns an iterator over the encryption method objects held in this list, in the order they appeared in the stream they are read from. |
| public boolean | |
| public boolean | Returns: true if there is a modification detection code package associated with
this streamChecks whether the packet is integrity protected. |
| public Iterator | iterator()
Implements org. |
| public int |
| data | back to summary |
|---|---|
| pack-priv InputStreamPacket data | |
| LOG | back to summary |
|---|---|
| private static final Logger LOG | |
| methods | back to summary |
|---|---|
| pack-priv List<PGPEncryptedData> methods | |
| PGPEncryptedDataList | back to summary |
|---|---|
| public PGPEncryptedDataList(byte[] encData) throws IOException Construct an encrypted data packet holder, reading PGP encrypted method packets and an encrypted data packet from a stream.
The first packet in the stream should be one of
| |
| PGPEncryptedDataList | back to summary |
|---|---|
| public PGPEncryptedDataList(InputStream inStream) throws IOException Construct an encrypted data packet holder, reading PGP encrypted method packets and an encrypted data packet from a stream.
The first packet in the stream should be one of
| |
| PGPEncryptedDataList | back to summary |
|---|---|
| public PGPEncryptedDataList(BCPGInputStream pIn) throws IOException Construct an encrypted data packet holder, reading PGP encrypted method packets and an encrypted data packet from the stream.
The next packet in the stream should be one of
| |
| extractSessionKeyEncryptedData | back to summary |
|---|---|
| public PGPSessionKeyEncryptedData extractSessionKeyEncryptedData() Create a decryption method using a
| |
| get | back to summary |
|---|---|
| public PGPEncryptedData get(int index) Gets the encryption method object at the specified index.
| |
| getEncryptedDataObjects | back to summary |
|---|---|
| public Iterator Returns an iterator over the encryption method objects held in this list, in the order they appeared in the stream they are read from. | |
| isEmpty | back to summary |
|---|---|
| public boolean isEmpty() Returns | |
| isIntegrityProtected | back to summary |
|---|---|
| public boolean isIntegrityProtected() Checks whether the packet is integrity protected.
| |
| iterator | back to summary |
|---|---|
| public Iterator Implements org. Support method for Iterable where available.
| |
| size | back to summary |
|---|---|
| public int size() Gets the number of encryption methods in this list. | |