org.bouncycastle.openpgp
Class PGPSecretKeyRing
java.lang.Object
org.bouncycastle.openpgp.PGPSecretKeyRing
public class PGPSecretKeyRing
extends java.lang.Object
Holder for a collection of PGP secret keys.
PGPSecretKeyRing
public PGPSecretKeyRing(InputStream in)
throws IOException,
PGPException
PGPSecretKeyRing
public PGPSecretKeyRing(byte[] encoding)
throws IOException,
PGPException
encode
public void encode(OutputStream outStream)
throws IOException
getEncoded
public byte[] getEncoded()
throws IOException
getPublicKey
public PGPPublicKey getPublicKey()
Return the public key for the master key.
- PGPPublicKey
getSecretKey
public PGPSecretKey getSecretKey()
Return the master private key.
- PGPSecretKey
getSecretKeys
public Iterator getSecretKeys()
Return an iterator containing all the secret keys.
- Iterator