|
Bouncy Castle Cryptography 1.24 | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--org.bouncycastle.openpgp.PGPPublicKeyRingCollection
Often a PGP key ring file is made up of a succession of master/sub-key key rings. If you want to read an entire public key file in one hit this is the class for you.
Constructor Summary | |
PGPPublicKeyRingCollection(byte[] encoding)
|
|
PGPPublicKeyRingCollection(java.util.Collection collection)
|
|
PGPPublicKeyRingCollection(java.io.InputStream in)
|
Method Summary | |
void |
encode(java.io.OutputStream outStream)
|
byte[] |
getEncoded()
|
java.util.Iterator |
getKeyRings()
return the public key rings making up this collection. |
PGPPublicKey |
getPublicKey(long keyID)
Return the PGP public key associated with the given key id. |
PGPPublicKeyRing |
getPublicKeyRing(long keyID)
Return the public key ring which contains the key referred to by keyID. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public PGPPublicKeyRingCollection(byte[] encoding) throws java.io.IOException, PGPException
public PGPPublicKeyRingCollection(java.io.InputStream in) throws java.io.IOException, PGPException
public PGPPublicKeyRingCollection(java.util.Collection collection) throws java.io.IOException, PGPException
Method Detail |
public java.util.Iterator getKeyRings()
public PGPPublicKey getPublicKey(long keyID) throws PGPException
keyID
-
PGPException
public PGPPublicKeyRing getPublicKeyRing(long keyID) throws PGPException
keyID
-
PGPException
public byte[] getEncoded() throws java.io.IOException
java.io.IOException
public void encode(java.io.OutputStream outStream) throws java.io.IOException
java.io.IOException
|
Bouncy Castle Cryptography 1.24 | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |