public class SExprParser
extends java.lang.Object
Modifier and Type | Class and Description |
---|---|
static interface |
SExprParser.ProtectionFormatTypeTags |
Constructor and Description |
---|
SExprParser(PGPDigestCalculatorProvider digestProvider)
Base constructor.
|
Modifier and Type | Method and Description |
---|---|
static PublicKeyAlgorithmTags[] |
getPGPSecretKey(PBEProtectionRemoverFactory keyProtectionRemoverFactory,
KeyFingerPrintCalculator fingerPrintCalculator,
PGPPublicKey pubKey,
int maxDepth,
int type,
SExpression expression,
java.lang.String keyType,
PGPDigestCalculatorProvider digestProvider) |
static int |
getProtectionType(java.lang.String str) |
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
public static PublicKeyAlgorithmTags[] getPGPSecretKey(PBEProtectionRemoverFactory keyProtectionRemoverFactory, KeyFingerPrintCalculator fingerPrintCalculator, PGPPublicKey pubKey, int maxDepth, int type, SExpression expression, java.lang.String keyType, PGPDigestCalculatorProvider digestProvider) throws PGPException, java.io.IOException
PGPException
java.io.IOException
public static int getProtectionType(java.lang.String str)