If encryption is already initialized we don't need to do it again.

This commit is contained in:
Hugo Trippaers 2013-02-06 16:49:12 +01:00
parent b1d70f7fe3
commit b28f3addfc

View File

@ -72,6 +72,11 @@ public class EncryptionSecretKeyChecker extends AdapterBase implements SystemInt
return;
}
if (s_useEncryption) {
s_logger.warn("Encryption already enabled, is check() called twice?");
return;
}
s_encryptor.setAlgorithm("PBEWithMD5AndDES");
String secretKey = null;