Method 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.
Parameters: ringCollection - the collection the ring to be added to. Parameters: publicKeyRing - the key ring to be added. |
public void | encode(OutputStream outStream) |
public byte[] | getEncoded() |
public Iterator | getKeyRings() return the public key rings making up this collection. |
public Iterator | getKeyRings(String userID, boolean matchPartial) Return an iterator of the key rings associated with the passed in userID.
Parameters: userID - the user ID to be matched. Parameters: matchPartial - if true userID need only be a substring of an actual ID string to match. |
public Iterator | getKeyRings(String userID) Return an iterator of the key rings associated with the passed in userID.
Parameters: userID - the user ID to be matched. |
public PGPPublicKey | getPublicKey(long keyID) Return the PGP public key associated with the given key id. |
public PGPPublicKeyRing | getPublicKeyRing(long keyID) Return the public key ring which contains the key referred to by keyID. |
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.
Parameters: ringCollection - the collection the ring to be removed from. Parameters: publicKeyRing - the key ring to be removed. |
public int | size() Return the number of rings in this collection. |