private class SignContentPGP.SignatureStreamCallback extends EncodingStreamCallback
| Modifier and Type | Field and Description |
|---|---|
private Map<String,String> |
attributes |
private HashAlgorithm |
hashAlgorithm |
private org.bouncycastle.openpgp.PGPPrivateKey |
privateKey |
| Modifier | Constructor and Description |
|---|---|
protected |
SignatureStreamCallback(FileEncoding fileEncoding,
CompressionAlgorithm compressionAlgorithm,
String filename,
HashAlgorithm hashAlgorithm,
org.bouncycastle.openpgp.PGPPrivateKey privateKey) |
| Modifier and Type | Method and Description |
|---|---|
protected org.bouncycastle.openpgp.PGPSignatureGenerator |
getSignatureGenerator()
Get Signature Generator initialized using configuration properties and Private Key
|
private void |
setSignatureAlgorithm(int keyAlgorithm,
int hashAlgorithm) |
private void |
setSignatureAttributes(org.bouncycastle.openpgp.PGPSignature signature) |
protected void |
writeSignature(org.bouncycastle.openpgp.PGPSignatureGenerator signatureGenerator,
OutputStream outputStream)
Write Signature to Output Stream
|
createOutputBuffer, openLiteralOutputStream, process, processCompression, processEncodingprivate final org.bouncycastle.openpgp.PGPPrivateKey privateKey
private final HashAlgorithm hashAlgorithm
protected SignatureStreamCallback(FileEncoding fileEncoding, CompressionAlgorithm compressionAlgorithm, String filename, HashAlgorithm hashAlgorithm, org.bouncycastle.openpgp.PGPPrivateKey privateKey)
protected void writeSignature(org.bouncycastle.openpgp.PGPSignatureGenerator signatureGenerator,
OutputStream outputStream)
throws org.bouncycastle.openpgp.PGPException,
IOException
signatureGenerator - Signature Generator initialized with Private KeyoutputStream - Output Stream for writing encoded signatureorg.bouncycastle.openpgp.PGPException - Thrown when failing to generate signatureIOException - Thrown when failing to write signatureprotected org.bouncycastle.openpgp.PGPSignatureGenerator getSignatureGenerator()
throws org.bouncycastle.openpgp.PGPException
org.bouncycastle.openpgp.PGPException - Thrown when failing to initialize signature generatorprivate void setSignatureAttributes(org.bouncycastle.openpgp.PGPSignature signature)
private void setSignatureAlgorithm(int keyAlgorithm,
int hashAlgorithm)
Copyright © 2022 Apache NiFi Project. All rights reserved.