ARTEMIS-2087 fix NPE; mask password in example
This commit is contained in:
parent
7a463f038a
commit
5d329a70d1
|
@ -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
|
||||||
|
|
|
@ -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"/>
|
||||||
|
|
Loading…
Reference in New Issue