private class VerifyContentPGP.VerifyStreamCallback extends Object implements StreamCallback
| Modifier and Type | Field and Description |
|---|---|
private Map<String,String> |
attributes |
private PGPPublicKeyService |
publicKeyService |
private boolean |
verified |
| Modifier | Constructor and Description |
|---|---|
private |
VerifyStreamCallback(PGPPublicKeyService publicKeyService) |
| Modifier and Type | Method and Description |
|---|---|
void |
process(InputStream inputStream,
OutputStream outputStream)
Process Input Stream containing binary or ASCII Armored OpenPGP messages and write literal data after verification
|
private void |
processLiteralData(org.bouncycastle.openpgp.PGPLiteralData literalData,
OutputStream outputStream,
org.bouncycastle.openpgp.PGPOnePassSignature onePassSignature) |
private void |
processObjectFactory(Iterator<?> objects,
OutputStream outputStream) |
private org.bouncycastle.openpgp.PGPOnePassSignature |
processOnePassSignatures(org.bouncycastle.openpgp.PGPOnePassSignatureList onePassSignatureList) |
private void |
processSignatures(org.bouncycastle.openpgp.PGPSignatureList signatureList,
org.bouncycastle.openpgp.PGPOnePassSignature onePassSignature) |
private void |
processSignedStream(InputStream inputStream,
OutputStream outputStream,
org.bouncycastle.openpgp.PGPOnePassSignature onePassSignature) |
private void |
setLiteralDataAttributes(org.bouncycastle.openpgp.PGPLiteralData literalData) |
private void |
setOnePassSignatureAttributes(org.bouncycastle.openpgp.PGPOnePassSignature onePassSignature) |
private void |
setSignatureAlgorithm(int keyAlgorithm,
int hashAlgorithm) |
private void |
setSignatureAttributes(org.bouncycastle.openpgp.PGPSignature signature) |
private final PGPPublicKeyService publicKeyService
private boolean verified
private VerifyStreamCallback(PGPPublicKeyService publicKeyService)
public void process(InputStream inputStream, OutputStream outputStream) throws IOException
process in interface StreamCallbackinputStream - Input Stream to be readoutputStream - Output Stream for literal data contentsIOException - Thrown when unable to read or write streamsprivate void processObjectFactory(Iterator<?> objects, OutputStream outputStream) throws IOException
IOExceptionprivate org.bouncycastle.openpgp.PGPOnePassSignature processOnePassSignatures(org.bouncycastle.openpgp.PGPOnePassSignatureList onePassSignatureList)
private void processLiteralData(org.bouncycastle.openpgp.PGPLiteralData literalData,
OutputStream outputStream,
org.bouncycastle.openpgp.PGPOnePassSignature onePassSignature)
throws IOException
IOExceptionprivate void processSignatures(org.bouncycastle.openpgp.PGPSignatureList signatureList,
org.bouncycastle.openpgp.PGPOnePassSignature onePassSignature)
private void processSignedStream(InputStream inputStream, OutputStream outputStream, org.bouncycastle.openpgp.PGPOnePassSignature onePassSignature) throws IOException
IOExceptionprivate void setOnePassSignatureAttributes(org.bouncycastle.openpgp.PGPOnePassSignature onePassSignature)
private void setSignatureAttributes(org.bouncycastle.openpgp.PGPSignature signature)
private void setLiteralDataAttributes(org.bouncycastle.openpgp.PGPLiteralData literalData)
private void setSignatureAlgorithm(int keyAlgorithm,
int hashAlgorithm)
Copyright © 2022 Apache NiFi Project. All rights reserved.