mirror of
https://github.com/pgpainless/pgpainless.git
synced 2024-12-23 11:27:57 +01:00
Use ImplementationFactory.getSessionKeyDataDecryptorFactory() method
This commit is contained in:
parent
0e45de9b4a
commit
609bb4556a
1 changed files with 2 additions and 3 deletions
|
@ -256,9 +256,8 @@ public final class DecryptionStreamFactory {
|
||||||
PGPEncryptedDataList pgpEncryptedDataList,
|
PGPEncryptedDataList pgpEncryptedDataList,
|
||||||
SessionKey sessionKey)
|
SessionKey sessionKey)
|
||||||
throws PGPException {
|
throws PGPException {
|
||||||
PGPSessionKey pgpSessionKey = new PGPSessionKey(sessionKey.getAlgorithm().getAlgorithmId(), sessionKey.getKey());
|
SessionKeyDataDecryptorFactory decryptorFactory = ImplementationFactory.getInstance()
|
||||||
SessionKeyDataDecryptorFactory decryptorFactory =
|
.getSessionKeyDataDecryptorFactory(sessionKey);
|
||||||
ImplementationFactory.getInstance().provideSessionKeyDataDecryptorFactory(pgpSessionKey);
|
|
||||||
InputStream decryptedDataStream = null;
|
InputStream decryptedDataStream = null;
|
||||||
PGPEncryptedData encryptedData = null;
|
PGPEncryptedData encryptedData = null;
|
||||||
for (PGPEncryptedData pgpEncryptedData : pgpEncryptedDataList) {
|
for (PGPEncryptedData pgpEncryptedData : pgpEncryptedDataList) {
|
||||||
|
|
Loading…
Reference in a new issue