public class SExprParser
extends java.lang.Object
Constructor and Description |
---|
SExprParser(PGPDigestCalculatorProvider digestProvider)
Base constructor.
|
Modifier and Type | Method and Description |
---|---|
PGPSecretKey |
parseSecretKey(java.io.InputStream inputStream,
PBEProtectionRemoverFactory keyProtectionRemoverFactory,
KeyFingerPrintCalculator fingerPrintCalculator)
Parse a secret key from one of the GPG S expression keys.
|
PGPSecretKey |
parseSecretKey(java.io.InputStream inputStream,
PBEProtectionRemoverFactory keyProtectionRemoverFactory,
PGPPublicKey pubKey)
Parse a secret key from one of the GPG S expression keys associating it with the passed in public key.
|
public SExprParser(PGPDigestCalculatorProvider digestProvider)
digestProvider
- a provider for digest calculations. Used to confirm key protection hashes.public PGPSecretKey parseSecretKey(java.io.InputStream inputStream, PBEProtectionRemoverFactory keyProtectionRemoverFactory, PGPPublicKey pubKey) throws java.io.IOException, PGPException
java.io.IOException
PGPException
public PGPSecretKey parseSecretKey(java.io.InputStream inputStream, PBEProtectionRemoverFactory keyProtectionRemoverFactory, KeyFingerPrintCalculator fingerPrintCalculator) throws java.io.IOException, PGPException
java.io.IOException
PGPException