public class PgpEncrypter extends Object
| Modifier and Type | Field and Description |
|---|---|
static org.bouncycastle.openpgp.operator.bc.BcKeyFingerprintCalculator |
KEY_FINGERPRINT_CALCULATOR |
static org.bouncycastle.openpgp.operator.bc.BcPBESecretKeyDecryptorBuilder |
PBE_SECRET_KEY_DECRYPTOR_BUILDER |
static org.bouncycastle.openpgp.operator.bc.BcPGPDigestCalculatorProvider |
PGP_DIGEST_CALCULATOR_PROVIDER |
| Constructor and Description |
|---|
PgpEncrypter(PgpConfiguration config) |
| Modifier and Type | Method and Description |
|---|---|
InputStream |
decrypt(InputStream inputData,
String fileName) |
InputStream |
encrypt(InputStream inputData,
String fileName,
PgpKeyInfo keyInfo,
PgpEncryptionAlgorithm algorithm) |
static String |
formatKeyFingerprint(Long fingerprint) |
public static final org.bouncycastle.openpgp.operator.bc.BcKeyFingerprintCalculator KEY_FINGERPRINT_CALCULATOR
public static final org.bouncycastle.openpgp.operator.bc.BcPGPDigestCalculatorProvider PGP_DIGEST_CALCULATOR_PROVIDER
public static final org.bouncycastle.openpgp.operator.bc.BcPBESecretKeyDecryptorBuilder PBE_SECRET_KEY_DECRYPTOR_BUILDER
public PgpEncrypter(PgpConfiguration config)
public InputStream encrypt(InputStream inputData, String fileName, PgpKeyInfo keyInfo, PgpEncryptionAlgorithm algorithm)
public InputStream decrypt(InputStream inputData, String fileName)
Copyright © 2019 MuleSoft, Inc.. All rights reserved.