From 639d2a19f87127e2baef357f0bba102d27a80e1f Mon Sep 17 00:00:00 2001 From: Paul Schaub Date: Tue, 13 Sep 2022 20:27:16 +0200 Subject: [PATCH] Remove unused provideSessionKeyDataDecryptorFactory() methods --- .../pgpainless/implementation/BcImplementationFactory.java | 5 ----- .../org/pgpainless/implementation/ImplementationFactory.java | 2 -- .../pgpainless/implementation/JceImplementationFactory.java | 5 ----- 3 files changed, 12 deletions(-) diff --git a/pgpainless-core/src/main/java/org/pgpainless/implementation/BcImplementationFactory.java b/pgpainless-core/src/main/java/org/pgpainless/implementation/BcImplementationFactory.java index b7bbd5f9..c8e86311 100644 --- a/pgpainless-core/src/main/java/org/pgpainless/implementation/BcImplementationFactory.java +++ b/pgpainless-core/src/main/java/org/pgpainless/implementation/BcImplementationFactory.java @@ -148,11 +148,6 @@ public class BcImplementationFactory extends ImplementationFactory { .build(passphrase.getChars()); } - @Override - public SessionKeyDataDecryptorFactory provideSessionKeyDataDecryptorFactory(PGPSessionKey sessionKey) { - return new BcSessionKeyDataDecryptorFactory(sessionKey); - } - @Override public PGPObjectFactory getPGPObjectFactory(byte[] bytes) { return new BcPGPObjectFactory(bytes); diff --git a/pgpainless-core/src/main/java/org/pgpainless/implementation/ImplementationFactory.java b/pgpainless-core/src/main/java/org/pgpainless/implementation/ImplementationFactory.java index 51c76c6f..06065838 100644 --- a/pgpainless-core/src/main/java/org/pgpainless/implementation/ImplementationFactory.java +++ b/pgpainless-core/src/main/java/org/pgpainless/implementation/ImplementationFactory.java @@ -118,8 +118,6 @@ public abstract class ImplementationFactory { HashAlgorithm hashAlgorithm, int s2kCount, Passphrase passphrase) throws PGPException; - public abstract SessionKeyDataDecryptorFactory provideSessionKeyDataDecryptorFactory(PGPSessionKey sessionKey); - public abstract PGPObjectFactory getPGPObjectFactory(InputStream inputStream); public abstract PGPObjectFactory getPGPObjectFactory(byte[] bytes); diff --git a/pgpainless-core/src/main/java/org/pgpainless/implementation/JceImplementationFactory.java b/pgpainless-core/src/main/java/org/pgpainless/implementation/JceImplementationFactory.java index f4efd11e..31a7f128 100644 --- a/pgpainless-core/src/main/java/org/pgpainless/implementation/JceImplementationFactory.java +++ b/pgpainless-core/src/main/java/org/pgpainless/implementation/JceImplementationFactory.java @@ -137,11 +137,6 @@ public class JceImplementationFactory extends ImplementationFactory { .build(passphrase.getChars()); } - @Override - public SessionKeyDataDecryptorFactory provideSessionKeyDataDecryptorFactory(PGPSessionKey sessionKey) { - return new JceSessionKeyDataDecryptorFactoryBuilder().build(sessionKey); - } - @Override public PGPObjectFactory getPGPObjectFactory(InputStream inputStream) { return new JcaPGPObjectFactory(inputStream);