public class PgpEncrypter extends Object
| Modifier and Type | Class and Description |
|---|---|
protected class |
PgpEncrypter.SignatureGeneratorClosable
Wraps the org.bouncycastle.openpgp.PGPSignatureGenerator into an
AutoCloseable, to let this usage pattern manage the
close of the generator-defined streams of data. |
| Constructor and Description |
|---|
PgpEncrypter(PgpConfiguration config) |
| Modifier and Type | Method and Description |
|---|---|
InputStream |
decrypt(InputStream inputData,
String fileName,
boolean validateIfSignatureFound) |
InputStream |
encrypt(InputStream inputData,
String fileName,
PgpKeyInfo encryptKeyInfo,
PgpEncryptionAlgorithm algorithm,
boolean disableMDC,
org.mule.runtime.api.scheduler.Scheduler scheduler,
Boolean armoredTransform) |
InputStream |
encrypt(InputStream inputData,
String fileName,
PgpKeyInfo encryptKeyInfo,
PgpEncryptionAlgorithm algorithm,
Optional<PgpKeyInfo> signKeyInfo,
boolean disableMDC,
org.mule.runtime.api.scheduler.Scheduler scheduler,
Boolean armoredTransform) |
InputStream |
encryptAsync(Object encryptedDataGenerator,
Object compressedDataGenerator,
OutputStream out,
WrappedErrorPipedInputStream input,
PipedOutputStream pipedOutputStream,
Optional<PgpKeyInfo> signKeyInfo,
Object literalDataGenerator,
String fileName,
InputStream inputData,
boolean armoredTransform) |
static String |
formatKeyFingerprint(Long fingerprint) |
protected PgpEncrypter.SignatureGeneratorClosable |
generateSignatureGeneratorClosable(Optional<PgpKeyInfo> signerKeyInfo,
OutputStream compressorEntryPoint)
Generates a
PgpEncrypter.SignatureGeneratorClosable whether or not a signature of the message was required. |
public PgpEncrypter(PgpConfiguration config)
public InputStream encrypt(InputStream inputData, String fileName, PgpKeyInfo encryptKeyInfo, PgpEncryptionAlgorithm algorithm, boolean disableMDC, org.mule.runtime.api.scheduler.Scheduler scheduler, Boolean armoredTransform)
public InputStream encrypt(InputStream inputData, String fileName, PgpKeyInfo encryptKeyInfo, PgpEncryptionAlgorithm algorithm, Optional<PgpKeyInfo> signKeyInfo, boolean disableMDC, org.mule.runtime.api.scheduler.Scheduler scheduler, Boolean armoredTransform)
public InputStream encryptAsync(Object encryptedDataGenerator, Object compressedDataGenerator, OutputStream out, WrappedErrorPipedInputStream input, PipedOutputStream pipedOutputStream, Optional<PgpKeyInfo> signKeyInfo, Object literalDataGenerator, String fileName, InputStream inputData, boolean armoredTransform)
protected PgpEncrypter.SignatureGeneratorClosable generateSignatureGeneratorClosable(Optional<PgpKeyInfo> signerKeyInfo, OutputStream compressorEntryPoint)
PgpEncrypter.SignatureGeneratorClosable whether or not a signature of the message was required.signerKeyInfo - The signer (usually message sender) key info, from which the private key will be used.compressorEntryPoint - public InputStream decrypt(InputStream inputData, String fileName, boolean validateIfSignatureFound)
Copyright © 2025 MuleSoft, Inc.. All rights reserved.