|
Bouncy Castle Cryptography 1.51 | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.bouncycastle.openpgp.PGPEncryptedDataList
public class PGPEncryptedDataList
A holder for a list of PGP encryption method packets and the encrypted data associated with them.
This holder supports reading a sequence of the following encryption methods, followed by an encrypted data packet:PacketTags.SYMMETRIC_KEY_ENC_SESSION
- produces a PGPPBEEncryptedData
PacketTags.PUBLIC_KEY_ENC_SESSION
- produces a PGPPublicKeyEncryptedData
Constructor Summary | |
---|---|
PGPEncryptedDataList(BCPGInputStream pIn)
Construct an encrypted data packet holder, reading PGP encrypted method packets and an encrytped data packet from the stream. |
Method Summary | |
---|---|
java.lang.Object |
get(int index)
Gets the encryption method object at the specified index. |
java.util.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. |
java.util.Iterator |
getEncyptedDataObjects()
Deprecated. misspelt - use getEncryptedDataObjects() |
boolean |
isEmpty()
Returns true iff there are 0 encryption methods in this list. |
int |
size()
Gets the number of encryption methods in this list. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public PGPEncryptedDataList(BCPGInputStream pIn) throws java.io.IOException
PacketTags.SYMMETRIC_KEY_ENC_SESSION
or PacketTags.PUBLIC_KEY_ENC_SESSION
.
pIn
- the PGP object stream being read.
java.io.IOException
- if an error occurs reading from the PGP input.Method Detail |
---|
public java.lang.Object get(int index)
index
- the encryption method to obtain (0 based).public int size()
public boolean isEmpty()
true
iff there are 0 encryption methods in this list.
public java.util.Iterator getEncyptedDataObjects()
public java.util.Iterator getEncryptedDataObjects()
|
Bouncy Castle Cryptography 1.51 | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |