[core] Hide the real token value when print job content
@@ -95,7 +95,8 @@ public class Engine
Set<String> keys = configuration.getKeys();
for (String key : keys) {
boolean isSensitive = StringUtils.endsWithIgnoreCase(key, "password")
- || StringUtils.endsWithIgnoreCase(key, "accessKey");
+ || StringUtils.endsWithIgnoreCase(key, "accessKey")
+ || StringUtils.endsWithIgnoreCase(key, "token");
if (isSensitive && configuration.get(key) instanceof String) {
configuration.set(key, "*****");
}
