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(); + } }