org.apache.commons.openpgp
public class BouncyCastleKeyRing extends java.lang.Object implements KeyRing
Constructor and Description |
---|
BouncyCastleKeyRing(java.io.InputStream secretKeyRingStream,
java.io.InputStream publicKeyRingStream,
char[] password) |
Modifier and Type | Method and Description |
---|---|
char[] |
getPassword() |
org.bouncycastle.openpgp.PGPPublicKey |
getPublicKey(long keyId) |
org.bouncycastle.openpgp.PGPPublicKey |
getPublicKey(java.lang.String keyId) |
org.bouncycastle.openpgp.PGPSecretKey |
getSecretKey(long keyId) |
org.bouncycastle.openpgp.PGPSecretKey |
getSecretKey(java.lang.String keyId) |
public BouncyCastleKeyRing(java.io.InputStream secretKeyRingStream, java.io.InputStream publicKeyRingStream, char[] password) throws java.io.IOException, org.bouncycastle.openpgp.PGPException
java.io.IOException
org.bouncycastle.openpgp.PGPException
public char[] getPassword()
getPassword
in interface KeyRing
public org.bouncycastle.openpgp.PGPSecretKey getSecretKey(java.lang.String keyId)
getSecretKey
in interface KeyRing
public org.bouncycastle.openpgp.PGPPublicKey getPublicKey(java.lang.String keyId)
getPublicKey
in interface KeyRing
public org.bouncycastle.openpgp.PGPSecretKey getSecretKey(long keyId)
getSecretKey
in interface KeyRing
public org.bouncycastle.openpgp.PGPPublicKey getPublicKey(long keyId)
getPublicKey
in interface KeyRing