Method 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.
Parameters: ringCollection - the collection the ring to be added to. Parameters: secretKeyRing - the key ring to be added. |
public void | encode(OutputStream outStream) |
public byte[] | getEncoded() |
public Iterator | getKeyRings() return the secret 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 PGPSecretKey | getSecretKey(long keyID) Return the PGP secret key associated with the given key id. |
public PGPSecretKeyRing | getSecretKeyRing(long keyID) Return the secret key ring which contains the key referred to by keyID. |
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.
Parameters: ringCollection - the collection the ring to be removed from. Parameters: secretKeyRing - the key ring to be removed. |
public int | size() Return the number of rings in this collection. |