public class SExprParser extends Object
| Constructor and Description |
|---|
SExprParser(org.bouncycastle.openpgp.operator.PGPDigestCalculatorProvider digestProvider)
Base constructor.
|
| Modifier and Type | Method and Description |
|---|---|
org.bouncycastle.openpgp.PGPSecretKey |
parseSecretKey(InputStream inputStream,
org.bouncycastle.openpgp.operator.PBEProtectionRemoverFactory keyProtectionRemoverFactory,
org.bouncycastle.openpgp.operator.KeyFingerPrintCalculator fingerPrintCalculator)
Parse a secret key from one of the GPG S expression keys.
|
org.bouncycastle.openpgp.PGPSecretKey |
parseSecretKey(InputStream inputStream,
org.bouncycastle.openpgp.operator.PBEProtectionRemoverFactory keyProtectionRemoverFactory,
org.bouncycastle.openpgp.PGPPublicKey pubKey)
Parse a secret key from one of the GPG S expression keys associating it
with the passed in public key.
|
public SExprParser(org.bouncycastle.openpgp.operator.PGPDigestCalculatorProvider digestProvider)
digestProvider - a provider for digest calculations. Used to confirm key
protection hashes.public org.bouncycastle.openpgp.PGPSecretKey parseSecretKey(InputStream inputStream, org.bouncycastle.openpgp.operator.PBEProtectionRemoverFactory keyProtectionRemoverFactory, org.bouncycastle.openpgp.PGPPublicKey pubKey) throws IOException, org.bouncycastle.openpgp.PGPException
inputStream - to read fromkeyProtectionRemoverFactory - for decrypting encrypted keyspubKey - the private key should belong toIOExceptionorg.bouncycastle.openpgp.PGPExceptionpublic org.bouncycastle.openpgp.PGPSecretKey parseSecretKey(InputStream inputStream, org.bouncycastle.openpgp.operator.PBEProtectionRemoverFactory keyProtectionRemoverFactory, org.bouncycastle.openpgp.operator.KeyFingerPrintCalculator fingerPrintCalculator) throws IOException, org.bouncycastle.openpgp.PGPException
inputStream - to read fromkeyProtectionRemoverFactory - for decrypting encrypted keysfingerPrintCalculator - for calculating key fingerprintsIOExceptionorg.bouncycastle.openpgp.PGPExceptionCopyright © 2021 Eclipse JGit Project. All rights reserved.