Minor: delete PlainText implementation

- It never gets used anymore and could cause security issues if we did accidentally use it as EncryptionMethod
This commit is contained in:
ljacqu
2017-10-22 09:26:02 +02:00
parent d6e2369f36
commit b211c97395
3 changed files with 2 additions and 22 deletions
@@ -81,7 +81,7 @@ public class HashAlgorithmIntegrationTest {
// when
for (HashAlgorithm hashAlgorithm : HashAlgorithm.values()) {
if (hashAlgorithm != HashAlgorithm.CUSTOM) {
if (hashAlgorithm != HashAlgorithm.CUSTOM && hashAlgorithm != HashAlgorithm.PLAINTEXT) {
boolean isEnumDeprecated = HashAlgorithm.class.getDeclaredField(hashAlgorithm.name())
.isAnnotationPresent(Deprecated.class);
boolean isDeprecatedClass = hashAlgorithm.getClazz().isAnnotationPresent(Deprecated.class);