Encrypted data packets are decrypted using a PGPDataDecryptor obtained from a
PGPDataDecryptorFactory.
| Modifier and Type | Class and Description |
|---|---|
| protected static class |
| Modifier and Type | Field and Description |
|---|---|
| pack-priv InputStreamPacket | |
| pack-priv InputStream | |
| pack-priv PGPDigestCalculator | |
| pack-priv PGPEncryptedData. |
| Access | Constructor and Description |
|---|---|
| pack-priv |
| Modifier and Type | Method and Description |
|---|---|
| public int | Returns: algorithmReturn the symmetric encryption algorithm that is used by the packet. |
| public InputStream | Returns: the encrypted data in this packet.Return the raw input stream for the data stream. |
| public int | |
| public boolean | Returns: true if there is a modification detection code package associated with
this streamChecks whether the packet is integrity protected. |
| public boolean | Returns: true if the message verifies, false otherwise.Verifies the integrity of the packet against the modification detection code associated with it in the stream. |
| encData | back to summary |
|---|---|
| pack-priv InputStreamPacket encData | |
| encStream | back to summary |
|---|---|
| pack-priv InputStream encStream | |
| integrityCalculator | back to summary |
|---|---|
| pack-priv PGPDigestCalculator integrityCalculator | |
| truncStream | back to summary |
|---|---|
| pack-priv PGPEncryptedData. | |
| PGPEncryptedData | back to summary |
|---|---|
| pack-priv PGPEncryptedData(InputStreamPacket encData) | |
| getAlgorithm | back to summary |
|---|---|
| public int getAlgorithm() Return the symmetric encryption algorithm that is used by the packet.
| |
| getInputStream | back to summary |
|---|---|
| public InputStream getInputStream() Return the raw input stream for the data stream.
Note this stream is shared with all other encryption methods in the same
| |
| getVersion | back to summary |
|---|---|
| public int getVersion() Return the version number of the Encrypted Session Key Packet.
| |
| isIntegrityProtected | back to summary |
|---|---|
| public boolean isIntegrityProtected() Checks whether the packet is integrity protected.
| |
| verify | back to summary |
|---|---|
| public boolean verify() throws PGPException, IOException Verifies the integrity of the packet against the modification detection code associated with it in the stream. Note This can only be called after the message has been read.
| |
| Modifier and Type | Field and Description |
|---|---|
| pack-priv int | |
| pack-priv InputStream | |
| pack-priv int[] | |
| pack-priv byte[] |
| Access | Constructor and Description |
|---|---|
| pack-priv |
| Modifier and Type | Method and Description |
|---|---|
| pack-priv int[] | |
| public int | read()
Implements abstract java. |
| public int | read(byte[]
the buffer into which the data is read. b)Overrides java. b.
|
| public int | read(byte[]
the buffer into which the data is read. b, int the start offset in array off, int b
at which the data is written.the maximum number of bytes to read. len)Overrides java. len bytes of data from the input stream into
an array of bytes.
|
| bufPtr | back to summary |
|---|---|
| pack-priv int bufPtr | |
| in | back to summary |
|---|---|
| pack-priv InputStream in | |
| lookAhead | back to summary |
|---|---|
| pack-priv int[] lookAhead | |
| readBuffer | back to summary |
|---|---|
| pack-priv byte[] readBuffer | |
| TruncatedStream | back to summary |
|---|---|
| pack-priv TruncatedStream(InputStream in) throws IOException | |
| getLookAhead | back to summary |
|---|---|
| pack-priv int[] getLookAhead() | |
| read | back to summary |
|---|---|
| public int read() throws IOException Implements abstract java. Doc from java. Reads the next byte of data from the input stream. The value byte is
returned as an
| |
| read | back to summary |
|---|---|
| public int read(byte[] b) throws IOException Overrides java. Doc from java. Reads some number of bytes from the input stream and stores them into
the buffer array If the length of The first byte read is stored into element
| |
| read | back to summary |
|---|---|
| public int read(byte[] b, int off, int len) throws IOException Overrides java. Doc from java. Reads up to This method blocks until input data is available, end of file is detected, or an exception is thrown. If The first byte read is stored into element In every case, elements
| |