Constructs a new UsernamePasswordToken encapsulating the username and password submitted
during an authentication attempt, with a <tt>null</tt> {@link #getHost() host} and
a <tt>rememberMe</tt> default of <tt>false</tt>
<p/>
<p>This is a convenience constructor and maintains the password internally via a character
array, i.e. <tt>password.toCharArray();</tt>. Note that storing a password as a string
in your code could have possible security implications as noted in the class JavaDoc.</p>
@param username the username submitted for authentication
@param password the password string submitted for authentication
Constructs a new UsernamePasswordToken encapsulating the username and password submitted during an authentication attempt, with a <tt>null</tt> {@link #getHost() host} and a <tt>rememberMe</tt> default of <tt>false</tt> <p/> <p>This is a convenience constructor and maintains the password internally via a character array, i.e. <tt>password.toCharArray();</tt>. Note that storing a password as a string in your code could have possible security implications as noted in the class JavaDoc.</p>
@param username the username submitted for authentication @param password the password string submitted for authentication