public abstract class PGPKeyRing extends Object
Modifier and Type | Method and Description |
---|---|
abstract void |
encode(OutputStream outStream) |
abstract byte[] |
getEncoded() |
abstract Iterator<PGPPublicKey> |
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(long keyID)
Return the public key referred to by the passed in keyID if it
is present.
|
abstract Iterator |
getPublicKeys()
Return an iterator containing all the public keys.
|
public abstract PGPPublicKey getPublicKey()
PGPSecretKeyRing
this is also the public key of the master key pair.public abstract 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 Iterator<PGPPublicKey> getKeysWithSignaturesBy(long keyID)
public abstract void encode(OutputStream outStream) throws IOException
IOException
public abstract byte[] getEncoded() throws IOException
IOException
Copyright © 2018 BouncyCastle.org. All rights reserved.