org.apache.commons.openpgp
Interface KeyRing
- All Known Implementing Classes:
- BouncyCastleKeyRing
public interface KeyRing
Interface describing a key ring for use in signing or verifying data.
- Author:
- Brett Porter
ROLE
static final String ROLE
getFirstKeyId
String getFirstKeyId()
- Get the key ID of the first secret key that was added to the keyring.
getPassword
char[] getPassword()
- Returns:
getSecretKey
org.bouncycastle.openpgp.PGPSecretKey getSecretKey(String keyId)
- Parameters:
keyId
-
- Returns:
getPublicKey
org.bouncycastle.openpgp.PGPPublicKey getPublicKey(String keyId)
- Parameters:
keyId
-
- Returns:
getSecretKey
org.bouncycastle.openpgp.PGPSecretKey getSecretKey(long keyId)
- Parameters:
keyId
-
- Returns:
getPublicKey
org.bouncycastle.openpgp.PGPPublicKey getPublicKey(long keyId)
- Parameters:
keyId
-
- Returns:
addPublicKeyRing
void addPublicKeyRing(InputStream inputStream)
throws IOException,
org.bouncycastle.openpgp.PGPException
- Throws:
IOException
org.bouncycastle.openpgp.PGPException
Copyright © 2005-2013 The Apache Software Foundation. All Rights Reserved.