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:
parent
84ff6ce015
commit
b4b84badc0
1 changed files with 5 additions and 5 deletions
|
@ -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();
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue