1
0
Fork 0
mirror of https://github.com/pgpainless/pgpainless.git synced 2024-11-23 04:42:06 +01:00

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

View file

@ -42,11 +42,6 @@ import org.pgpainless.util.Passphrase;
public abstract class ImplementationFactory { public abstract class ImplementationFactory {
enum FactoryType {
bc,
jce
}
private static ImplementationFactory FACTORY_IMPLEMENTATION = new BcImplementationFactory(); private static ImplementationFactory FACTORY_IMPLEMENTATION = new BcImplementationFactory();
public static void setFactoryImplementation(ImplementationFactory implementation) { public static void setFactoryImplementation(ImplementationFactory implementation) {
@ -111,4 +106,9 @@ public abstract class ImplementationFactory {
public abstract PBESecretKeyEncryptor getPBESecretKeyEncryptor(SymmetricKeyAlgorithm encryptionAlgorithm, public abstract PBESecretKeyEncryptor getPBESecretKeyEncryptor(SymmetricKeyAlgorithm encryptionAlgorithm,
HashAlgorithm hashAlgorithm, int s2kCount, HashAlgorithm hashAlgorithm, int s2kCount,
Passphrase passphrase) throws PGPException; Passphrase passphrase) throws PGPException;
@Override
public String toString() {
return getClass().getSimpleName();
}
} }