public interface PGPSecretKeyAccessor
Modifier and Type | Method and Description |
---|---|
org.bouncycastle.openpgp.PGPPrivateKey |
getPrivateKey(Exchange exchange,
long keyId)
Returns the private key with a certain key ID.
|
List<PGPSecretKeyAndPrivateKeyAndUserId> |
getSignerKeys(Exchange exchange,
List<String> useridParts)
Returns the signer keys for the given user ID parts.
|
List<PGPSecretKeyAndPrivateKeyAndUserId> getSignerKeys(Exchange exchange, List<String> useridParts) throws Exception
exchange
- exchange, can be null
useridParts
- parts of User IDs, can be null
or empty, then an
empty list must be returnednull
, can be emptyException
org.bouncycastle.openpgp.PGPPrivateKey getPrivateKey(Exchange exchange, long keyId) throws Exception
exchange
- exchange, can be null
keyId
- key IDnull
if the key cannot be foundException
Copyright © 2007–2016 The Apache Software Foundation. All rights reserved.