| Modifier and Type | Field and Description |
|---|---|
| private List | |
| private Map |
| Access | Constructor and Description |
|---|---|
| private | |
| public | |
| public | PGPSecretKeyRingCollection(InputStream
input stream containing data in, KeyFingerPrintCalculator fingerPrintCalculator)Build a PGPSecretKeyRingCollection from the passed in input stream. |
| public |
| Modifier and Type | Method and Description |
|---|---|
| public static PGPSecretKeyRingCollection | Returns: a new collection merging the current one with the passed in ring.the collection the ring to be added to. ringCollection, PGPSecretKeyRing the key ring to be added. secretKeyRing)Return a new collection object containing the contents of the passed in collection and the passed in secret key ring. |
| public boolean | Returns: true if keyID present, false otherwise.key ID to look for. keyID)Return true if a key matching the passed in key ID is present, false otherwise. |
| public void | |
| public byte[] | |
| public Iterator | |
| public Iterator | Returns: an iterator (possibly empty) of key rings which matched.the user ID to be matched. userID)Return an iterator of the key rings associated with the passed in userID. |
| public Iterator | Returns: an iterator (possibly empty) of key rings which matched.the user ID to be matched. userID, boolean if true userID need only be a substring of an actual ID string to match. matchPartial)Return an iterator of the key rings associated with the passed in userID. |
| public Iterator | Returns: an iterator (possibly empty) of key rings which matched.the user ID to be matched. userID, boolean if true userID need only be a substring of an actual ID string to match. matchPartial, boolean if true case is ignored in user ID comparisons. ignoreCase)Return an iterator of the key rings associated with the passed in userID. |
| public PGPSecretKey | Returns: the secret keyid of the secret key keyID)Return the PGP secret key associated with the given key id. |
| public PGPSecretKeyRing | Returns: the secret key ringid of a secret key keyID)Return the secret key ring which contains the key referred to by keyID. |
| public Iterator | iterator()
Implements org. |
| public static PGPSecretKeyRingCollection | Returns: a new collection merging the current one with the passed in ring.the collection the ring to be removed from. ringCollection, PGPSecretKeyRing the key ring to be removed. secretKeyRing)Return a new collection object containing the contents of this collection with the passed in secret key ring removed. |
| public int |
| order | back to summary |
|---|---|
| private List<Long> order | |
| secretRings | back to summary |
|---|---|
| private Map<Long, PGPSecretKeyRing> secretRings | |
| PGPSecretKeyRingCollection | back to summary |
|---|---|
| private PGPSecretKeyRingCollection(Map<Long, PGPSecretKeyRing> secretRings, List<Long> order) | |
| PGPSecretKeyRingCollection | back to summary |
|---|---|
| public PGPSecretKeyRingCollection(byte[] encoding, KeyFingerPrintCalculator fingerPrintCalculator) throws IOException, PGPException | |
| PGPSecretKeyRingCollection | back to summary |
|---|---|
| public PGPSecretKeyRingCollection(InputStream in, KeyFingerPrintCalculator fingerPrintCalculator) throws IOException, PGPException Build a PGPSecretKeyRingCollection from the passed in input stream.
| |
| PGPSecretKeyRingCollection | back to summary |
|---|---|
| public PGPSecretKeyRingCollection(Collection<PGPSecretKeyRing> collection) | |
| addSecretKeyRing | back to summary |
|---|---|
| public static PGPSecretKeyRingCollection addSecretKeyRing(PGPSecretKeyRingCollection ringCollection, PGPSecretKeyRing secretKeyRing) Return a new collection object containing the contents of the passed in collection and the passed in secret key ring.
| |
| contains | back to summary |
|---|---|
| public boolean contains(long keyID) Return true if a key matching the passed in key ID is present, false otherwise.
| |
| encode | back to summary |
|---|---|
| public void encode(OutputStream outStream) throws IOException | |
| getEncoded | back to summary |
|---|---|
| public byte[] getEncoded() throws IOException | |
| getKeyRings | back to summary |
|---|---|
| public Iterator return the secret key rings making up this collection. | |
| getKeyRings | back to summary |
|---|---|
| public Iterator Return an iterator of the key rings associated with the passed in userID.
| |
| getKeyRings | back to summary |
|---|---|
| public Iterator Return an iterator of the key rings associated with the passed in userID.
| |
| getKeyRings | back to summary |
|---|---|
| public Iterator Return an iterator of the key rings associated with the passed in userID.
| |
| getSecretKey | back to summary |
|---|---|
| public PGPSecretKey getSecretKey(long keyID) Return the PGP secret key associated with the given key id.
| |
| getSecretKeyRing | back to summary |
|---|---|
| public PGPSecretKeyRing getSecretKeyRing(long keyID) Return the secret key ring which contains the key referred to by keyID.
| |
| iterator | back to summary |
|---|---|
| public Iterator Implements org. Support method for Iterable where available.
| |
| removeSecretKeyRing | back to summary |
|---|---|
| public static PGPSecretKeyRingCollection removeSecretKeyRing(PGPSecretKeyRingCollection ringCollection, PGPSecretKeyRing secretKeyRing) Return a new collection object containing the contents of this collection with the passed in secret key ring removed.
| |
| size | back to summary |
|---|---|
| public int size() Return the number of rings in this collection.
| |