| Modifier and Type | Field and Description |
|---|---|
| private List | |
| private Map |
| Access | Constructor and Description |
|---|---|
| private | |
| public | |
| public | PGPPublicKeyRingCollection(InputStream
input stream containing data in, KeyFingerPrintCalculator fingerPrintCalculator)Build a PGPPublicKeyRingCollection from the passed in input stream. |
| public |
| Modifier and Type | Method and Description |
|---|---|
| public static PGPPublicKeyRingCollection | Returns: a new collection merging the current one with the passed in ring.the collection the ring to be added to. ringCollection, PGPPublicKeyRing the key ring to be added. publicKeyRing)Return a new collection object containing the contents of the passed in collection and the passed in public 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 boolean | Returns: true if keyID present, false otherwise.hte key fingerprint to look for. fingerprint)Return true if a key matching the passed in fingerprint 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 Iterator | Returns: an iterator (possibly empty) of PGPPublicKey objects carrying signatures from keyID.the key id to be matched against. keyID)Return any keys carrying a signature issued by the key represented by keyID. |
| public PGPPublicKey | Returns: the PGP public keyif of the PGP public key keyID)Return the PGP public key associated with the given key id. |
| public PGPPublicKey | Returns: the PGP public key matching fingerprint.the public key fingerprint to match against. fingerprint)Return the PGP public key associated with the given key fingerprint. |
| public PGPPublicKeyRing | Returns: the public key ringkey ID to match against keyID)Return the public key ring which contains the key referred to by keyID. |
| public PGPPublicKeyRing | Returns: the PGP public key ring containing the PGP public key matching fingerprint.the public key fingerprint to match against. fingerprint)Return the public key ring which contains the key associated with the given key fingerprint. |
| public Iterator | iterator()
Implements org. Support method for Iterable where available. |
| public static PGPPublicKeyRingCollection | Returns: a new collection not containing the passed in ring.the collection the ring to be removed from. ringCollection, PGPPublicKeyRing the key ring to be removed. publicKeyRing)Return a new collection object containing the contents of this collection with the passed in public key ring removed. |
| public int |
| order | back to summary |
|---|---|
| private List<Long> order | |
| pubRings | back to summary |
|---|---|
| private Map<Long, PGPPublicKeyRing> pubRings | |
| PGPPublicKeyRingCollection | back to summary |
|---|---|
| private PGPPublicKeyRingCollection(Map<Long, PGPPublicKeyRing> pubRings, List<Long> order) | |
| PGPPublicKeyRingCollection | back to summary |
|---|---|
| public PGPPublicKeyRingCollection(byte[] encoding, KeyFingerPrintCalculator fingerPrintCalculator) throws IOException, PGPException | |
| PGPPublicKeyRingCollection | back to summary |
|---|---|
| public PGPPublicKeyRingCollection(InputStream in, KeyFingerPrintCalculator fingerPrintCalculator) throws IOException, PGPException Build a PGPPublicKeyRingCollection from the passed in input stream.
| |
| PGPPublicKeyRingCollection | back to summary |
|---|---|
| public PGPPublicKeyRingCollection(Collection<PGPPublicKeyRing> collection) | |
| addPublicKeyRing | back to summary |
|---|---|
| public static PGPPublicKeyRingCollection addPublicKeyRing(PGPPublicKeyRingCollection ringCollection, PGPPublicKeyRing publicKeyRing) Return a new collection object containing the contents of the passed in collection and the passed in public 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.
| |
| contains | back to summary |
|---|---|
| public boolean contains(byte[] fingerprint) Return true if a key matching the passed in fingerprint 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 public 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.
| |
| getKeysWithSignaturesBy | back to summary |
|---|---|
| public Iterator Return any keys carrying a signature issued by the key represented by keyID.
| |
| getPublicKey | back to summary |
|---|---|
| public PGPPublicKey getPublicKey(long keyID) Return the PGP public key associated with the given key id.
| |
| getPublicKey | back to summary |
|---|---|
| public PGPPublicKey getPublicKey(byte[] fingerprint) Return the PGP public key associated with the given key fingerprint.
| |
| getPublicKeyRing | back to summary |
|---|---|
| public PGPPublicKeyRing getPublicKeyRing(long keyID) Return the public key ring which contains the key referred to by keyID.
| |
| getPublicKeyRing | back to summary |
|---|---|
| public PGPPublicKeyRing getPublicKeyRing(byte[] fingerprint) Return the public key ring which contains the key associated with the given key fingerprint.
| |
| iterator | back to summary |
|---|---|
| public Iterator Implements org. Support method for Iterable where available.
| |
| removePublicKeyRing | back to summary |
|---|---|
| public static PGPPublicKeyRingCollection removePublicKeyRing(PGPPublicKeyRingCollection ringCollection, PGPPublicKeyRing publicKeyRing) Return a new collection object containing the contents of this collection with the passed in public key ring removed.
| |
| size | back to summary |
|---|---|
| public int size() Return the number of rings in this collection.
| |