private class DecryptContentPGP.DecryptStreamCallback extends Object implements StreamCallback
| Modifier and Type | Field and Description |
|---|---|
private Map<String,String> |
attributes |
private DecryptionStrategy |
decryptionStrategy |
private char[] |
passphrase |
private PGPPrivateKeyService |
privateKeyService |
| Constructor and Description |
|---|
DecryptStreamCallback(char[] passphrase,
PGPPrivateKeyService privateKeyService,
DecryptionStrategy decryptionStrategy) |
| Modifier and Type | Method and Description |
|---|---|
private org.bouncycastle.openpgp.PGPEncryptedDataList |
findEncryptedDataList(InputStream inputStream) |
private org.bouncycastle.openpgp.PGPEncryptedData |
findSupportedEncryptedData(org.bouncycastle.openpgp.PGPEncryptedDataList encryptedDataList) |
private InputStream |
getDecryptedDataStream(org.bouncycastle.openpgp.PGPEncryptedData encryptedData) |
private InputStream |
getDecryptedDataStream(org.bouncycastle.openpgp.PGPPBEEncryptedData passwordBasedEncryptedData) |
private InputStream |
getDecryptedDataStream(org.bouncycastle.openpgp.PGPPublicKeyEncryptedData publicKeyEncryptedData) |
private org.bouncycastle.openpgp.PGPEncryptedDataList |
getEncryptedDataList(InputStream inputStream) |
private String |
getEncryptedDataType(org.bouncycastle.openpgp.PGPEncryptedData encryptedData) |
private org.bouncycastle.openpgp.PGPLiteralData |
getLiteralData(org.bouncycastle.openpgp.PGPEncryptedData encryptedData) |
private org.bouncycastle.openpgp.PGPLiteralData |
getLiteralData(org.bouncycastle.openpgp.PGPObjectFactory objectFactory) |
private boolean |
isVerified(org.bouncycastle.openpgp.PGPEncryptedData encryptedData) |
void |
process(InputStream inputStream,
OutputStream outputStream)
Process Input Stream containing encrypted data and write decrypted contents to Output Stream
|
private void |
setSymmetricKeyAlgorithmAttributes(int symmetricAlgorithm) |
private final char[] passphrase
private final PGPPrivateKeyService privateKeyService
private final DecryptionStrategy decryptionStrategy
public DecryptStreamCallback(char[] passphrase,
PGPPrivateKeyService privateKeyService,
DecryptionStrategy decryptionStrategy)
public void process(InputStream inputStream, OutputStream outputStream) throws IOException
process in interface StreamCallbackinputStream - Input Stream containing encrypted dataoutputStream - Output Stream for decrypted contentsIOException - Thrown when unable to read or write streamsprivate org.bouncycastle.openpgp.PGPEncryptedData findSupportedEncryptedData(org.bouncycastle.openpgp.PGPEncryptedDataList encryptedDataList)
private org.bouncycastle.openpgp.PGPLiteralData getLiteralData(org.bouncycastle.openpgp.PGPEncryptedData encryptedData)
private org.bouncycastle.openpgp.PGPLiteralData getLiteralData(org.bouncycastle.openpgp.PGPObjectFactory objectFactory)
throws org.bouncycastle.openpgp.PGPException
org.bouncycastle.openpgp.PGPExceptionprivate InputStream getDecryptedDataStream(org.bouncycastle.openpgp.PGPEncryptedData encryptedData) throws org.bouncycastle.openpgp.PGPException
org.bouncycastle.openpgp.PGPExceptionprivate InputStream getDecryptedDataStream(org.bouncycastle.openpgp.PGPPBEEncryptedData passwordBasedEncryptedData) throws org.bouncycastle.openpgp.PGPException
org.bouncycastle.openpgp.PGPExceptionprivate InputStream getDecryptedDataStream(org.bouncycastle.openpgp.PGPPublicKeyEncryptedData publicKeyEncryptedData) throws org.bouncycastle.openpgp.PGPException
org.bouncycastle.openpgp.PGPExceptionprivate void setSymmetricKeyAlgorithmAttributes(int symmetricAlgorithm)
private boolean isVerified(org.bouncycastle.openpgp.PGPEncryptedData encryptedData)
private org.bouncycastle.openpgp.PGPEncryptedDataList getEncryptedDataList(InputStream inputStream) throws IOException
IOExceptionprivate org.bouncycastle.openpgp.PGPEncryptedDataList findEncryptedDataList(InputStream inputStream)
private String getEncryptedDataType(org.bouncycastle.openpgp.PGPEncryptedData encryptedData)
Copyright © 2022 Apache NiFi Project. All rights reserved.