private void convertPassword(Properties p){
  String pw=p.getProperty(KEYSTOREPWD);
  if (pw != null && !pw.startsWith(xorTag)) {
    String epw=obfuscate(pw.toCharArray());
    p.put(KEYSTOREPWD,epw);
  }
  pw=p.getProperty(TRUSTSTOREPWD);
  if (pw != null && !pw.startsWith(xorTag)) {
    String epw=obfuscate(pw.toCharArray());
    p.put(TRUSTSTOREPWD,epw);
  }
}

private void convertPassword ( Properties p ) { String pw = p . getProperty ( KEYSTOREPWD ) ; if ( pw != null && ! pw . startsWith ( xorTag ) ) { String epw = obfuscate ( pw . toCharArray ( ) ) ; p . put ( KEYSTOREPWD , epw ) ; } pw = p . getProperty ( TRUSTSTOREPWD ) ; if ( pw != null && ! pw . startsWith ( xorTag ) ) { String epw = obfuscate ( pw . toCharArray ( ) ) ; p . put ( TRUSTSTOREPWD , epw ) ; } }
obfuscate any key & trust store passwords within the given properties .
