Bouncy Castle Cryptography 1.20

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.


Constructor Summary
PGPSecretKeyRing(byte[] encoding)
           
PGPSecretKeyRing(java.io.InputStream in)
           
 
Method Summary
 void encode(java.io.OutputStream outStream)
           
 byte[] getEncoded()
           
 PGPPublicKey getPublicKey()
          Return the public key for the master key.
 PGPSecretKey getSecretKey()
          Return the master private key.
 PGPSecretKey getSecretKey(long keyId)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

PGPSecretKeyRing

public PGPSecretKeyRing(byte[] encoding)
                 throws java.io.IOException,
                        PGPException

PGPSecretKeyRing

public PGPSecretKeyRing(java.io.InputStream in)
                 throws java.io.IOException,
                        PGPException
Method Detail

getPublicKey

public PGPPublicKey getPublicKey()
Return the public key for the master key.
Returns:
PGPPublicKey

getSecretKey

public PGPSecretKey getSecretKey()
Return the master private key.
Returns:
PGPSecretKey

getSecretKey

public PGPSecretKey getSecretKey(long keyId)

getEncoded

public byte[] getEncoded()
                  throws java.io.IOException

encode

public void encode(java.io.OutputStream outStream)
            throws java.io.IOException

Bouncy Castle Cryptography 1.20