From b4b84badc02b6562e2328af62e5e1f8b0579cabd Mon Sep 17 00:00:00 2001 From: Paul Schaub Date: Sat, 3 Jul 2021 12:44:21 +0200 Subject: [PATCH] ImplementationFactory: override toString() --- .../implementation/ImplementationFactory.java | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) 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 d7ee5370..575a7f36 100644 --- a/pgpainless-core/src/main/java/org/pgpainless/implementation/ImplementationFactory.java +++ b/pgpainless-core/src/main/java/org/pgpainless/implementation/ImplementationFactory.java @@ -42,11 +42,6 @@ import org.pgpainless.util.Passphrase; public abstract class ImplementationFactory { - enum FactoryType { - bc, - jce - } - private static ImplementationFactory FACTORY_IMPLEMENTATION = new BcImplementationFactory(); public static void setFactoryImplementation(ImplementationFactory implementation) { @@ -111,4 +106,9 @@ public abstract class ImplementationFactory { public abstract PBESecretKeyEncryptor getPBESecretKeyEncryptor(SymmetricKeyAlgorithm encryptionAlgorithm, HashAlgorithm hashAlgorithm, int s2kCount, Passphrase passphrase) throws PGPException; + + @Override + public String toString() { + return getClass().getSimpleName(); + } }