ARTEMIS-2087 fix NPE; mask password in example

This commit is contained in:
Justin Bertram 2018-09-25 13:59:51 -05:00 committed by Clebert Suconic
parent 7a463f038a
commit 5d329a70d1
2 changed files with 3 additions and 3 deletions

View File

@ -61,7 +61,7 @@ public final class PasswordMaskingUtil {
} }
public static boolean isEncMasked(String password) { public static boolean isEncMasked(String password) {
return (password.startsWith(BEGIN_ENC) && password.endsWith(END_ENC)); return password == null ? false : (password.startsWith(BEGIN_ENC) && password.endsWith(END_ENC));
} }
//remove ENC() from the password body //remove ENC() from the password body

View File

@ -21,9 +21,9 @@
connector-host="localhost" connector-host="localhost"
secured="true" secured="true"
key-store-path="${data.dir}/../etc/server-side-keystore.jks" key-store-path="${data.dir}/../etc/server-side-keystore.jks"
key-store-password="secureexample" key-store-password="ENC(2a7c211d21c295cdbcde3589c205decb)"
trust-store-path="${data.dir}/../etc/server-side-truststore.jks" trust-store-path="${data.dir}/../etc/server-side-truststore.jks"
trust-store-password="secureexample"/> trust-store-password="ENC(2a7c211d21c295cdbcde3589c205decb)"/>
<authorisation> <authorisation>
<whitelist> <whitelist>
<entry domain="hawtio"/> <entry domain="hawtio"/>