|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.bouncycastle.openpgp.PGPKeyRing
org.bouncycastle.openpgp.PGPSecretKeyRing
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)
|
java.util.Iterator |
getSecretKeys()
Return an iterator containing all the secret keys. |
static PGPSecretKeyRing |
insertSecretKey(PGPSecretKeyRing secRing,
PGPSecretKey secKey)
Returns a new key ring with the secret key passed in either added or replacing an existing one with the same key ID. |
static PGPSecretKeyRing |
removeSecretKey(PGPSecretKeyRing secRing,
PGPSecretKey secKey)
Returns a new key ring with the secret key passed in removed from the key ring. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public PGPSecretKeyRing(byte[] encoding) throws java.io.IOException, PGPException
public PGPSecretKeyRing(java.io.InputStream in) throws java.io.IOException, PGPException
Method Detail |
public PGPPublicKey getPublicKey()
public PGPSecretKey getSecretKey()
public java.util.Iterator getSecretKeys()
public PGPSecretKey getSecretKey(long keyId)
public byte[] getEncoded() throws java.io.IOException
java.io.IOException
public void encode(java.io.OutputStream outStream) throws java.io.IOException
java.io.IOException
public static PGPSecretKeyRing insertSecretKey(PGPSecretKeyRing secRing, PGPSecretKey secKey)
secRing
- the secret key ring to be modified.secKey
- the secret key to be added.
public static PGPSecretKeyRing removeSecretKey(PGPSecretKeyRing secRing, PGPSecretKey secKey)
secRing
- the secret key ring to be modified.secKey
- the secret key to be removed.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |