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

Field Summary
static String ROLE
           
 
Method Summary
 void addPublicKeyRing(InputStream inputStream)
           
 String getFirstKeyId()
          Get the key ID of the first secret key that was added to the keyring.
 char[] getPassword()
           
 org.bouncycastle.openpgp.PGPPublicKey getPublicKey(long keyId)
           
 org.bouncycastle.openpgp.PGPPublicKey getPublicKey(String keyId)
           
 org.bouncycastle.openpgp.PGPSecretKey getSecretKey(long keyId)
           
 org.bouncycastle.openpgp.PGPSecretKey getSecretKey(String keyId)
           
 

Field Detail

ROLE

static final String ROLE
Method Detail

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.