|
Bouncy Castle Cryptography Library 1.81 | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.bouncycastle.openpgp.PGPKeyRing
Parent class for PGP public and secret key rings.
Method Summary | |
abstract void |
encode(java.io.OutputStream outStream)
|
abstract byte[] |
getEncoded()
|
abstract byte[] |
getEncoded(PacketFormat format)
|
abstract java.util.Iterator |
getKeysWithSignaturesBy(KeyIdentifier identifier)
|
abstract java.util.Iterator |
getKeysWithSignaturesBy(long keyID)
Return an iterator containing all the public keys carrying signatures issued from key keyID. |
abstract PGPPublicKey |
getPublicKey()
Return the first public key in the ring. |
abstract PGPPublicKey |
getPublicKey(byte[] fingerprint)
Return the public key with the passed in fingerprint if it is present. |
abstract PGPPublicKey |
getPublicKey(KeyIdentifier identifier)
|
abstract PGPPublicKey |
getPublicKey(long keyID)
Return the public key referred to by the passed in keyID if it is present. |
abstract java.util.Iterator |
getPublicKeys()
Return an iterator containing all the public keys. |
abstract java.util.Iterator |
getPublicKeys(KeyIdentifier identifier)
|
abstract int |
size()
Return the number of keys in the key ring. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Method Detail |
public abstract PGPPublicKey getPublicKey()
PGPSecretKeyRing
this is also the public key of the master key pair.
public abstract java.util.Iterator getPublicKeys()
public abstract PGPPublicKey getPublicKey(long keyID)
keyID
- the full keyID of the key of interest.
public abstract PGPPublicKey getPublicKey(byte[] fingerprint)
fingerprint
- the full fingerprint of the key of interest.
public abstract PGPPublicKey getPublicKey(KeyIdentifier identifier)
public abstract java.util.Iterator getPublicKeys(KeyIdentifier identifier)
public abstract java.util.Iterator getKeysWithSignaturesBy(long keyID)
public abstract java.util.Iterator getKeysWithSignaturesBy(KeyIdentifier identifier)
public abstract int size()
public abstract void encode(java.io.OutputStream outStream) throws java.io.IOException
java.io.IOException
public abstract byte[] getEncoded() throws java.io.IOException
java.io.IOException
public abstract byte[] getEncoded(PacketFormat format) throws java.io.IOException
java.io.IOException
|
Bouncy Castle Cryptography Library 1.81 | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |