Constructs a new UsernamePasswordToken encapsulating the username and password submitted, if the user
wishes their identity to be remembered across sessions, and the inetAddress from where the attempt is occurring.
<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
@param rememberMe if the user wishes their identity to be remembered across sessions
@param host the host name or IP string from where the attempt is occurring
Constructs a new UsernamePasswordToken encapsulating the username and password submitted, if the user wishes their identity to be remembered across sessions, and the inetAddress from where the attempt is occurring. <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 @param rememberMe if the user wishes their identity to be remembered across sessions @param host the host name or IP string from where the attempt is occurring