ImplementationFactory: override toString()

This commit is contained in:
Paul Schaub 2021-07-03 12:44:21 +02:00
parent 84ff6ce015
commit b4b84badc0
Signed by: vanitasvitae
GPG Key ID: 62BEE9264BF17311
1 changed files with 5 additions and 5 deletions

View File

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