implemented tests for encrypted mail config

Signed-off-by: Stephan Richter <s.richter@srsoftware.de>
This commit is contained in:
2024-09-26 23:25:19 +02:00
parent 8debdc781b
commit 48542c67fb
6 changed files with 156 additions and 3 deletions

View File

@@ -117,10 +117,10 @@ public class Application {
};
Optional<String> encryptionKey = config.get(ENCRYPTION_KEY);
var salt = config.getOrDefault(SALT,uuid());
if (encryptionKey.isPresent()){
var salt = config.getOrDefault(SALT,uuid());
mailConfig = new EncryptedMailConfig(mailConfig,encryptionKey.get(),salt);
}
return mailConfig;