/** * Sets the string value of a given parameter and encode it. * The encoding applied is only a basic first level of security protecting * the value from being casually read by a human, it is not an encryption. * @param name the name of the parameter. * @param value the value to set and encode. */ public void setEncodedString (String name, String value) { if ( value == null ) { list.remove(name); } else { list.put(name, Base64.encodePassword(value)); } }