If encryption is already initialized we don't need to do it again.(cherry picked from commit b28f3addfc)

Signed-off-by: Hugo Trippaers <htrippaers@schubergphilis.com>
This commit is contained in:
Hugo Trippaers 2013-02-06 16:49:12 +01:00
parent 17212984c9
commit 6287d4512e
1 changed files with 5 additions and 0 deletions

View File

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