Example usage for Java org.apache.shiro.authc UsernamePasswordToken fields, constructors, methods, implement or subclass
The text is from its open source code.
UsernamePasswordToken(final String username, final char[] password) Constructs a new UsernamePasswordToken encapsulating the username and password submitted during an authentication attempt, with a null #getHost() host and a rememberMe default of false. | |
UsernamePasswordToken(final String username, final String password) Constructs a new UsernamePasswordToken encapsulating the username and password submitted during an authentication attempt, with a null #getHost() host and a rememberMe default of false This is a convenience constructor and maintains the password internally via a character array, i.e. | |
UsernamePasswordToken(final String username, final char[] password, final String host) Constructs a new UsernamePasswordToken encapsulating the username and password submitted, the inetAddress from where the attempt is occurring, and a default rememberMe value of false | |
UsernamePasswordToken(final String username, final String password, final String host) Constructs a new UsernamePasswordToken encapsulating the username and password submitted, the inetAddress from where the attempt is occurring, and a default rememberMe value of false This is a convenience constructor and maintains the password internally via a character array, i.e. | |
UsernamePasswordToken(final String username, final char[] password, final boolean rememberMe) Constructs a new UsernamePasswordToken encapsulating the username and password submitted, as well as if the user wishes their identity to be remembered across sessions. | |
UsernamePasswordToken(final String username, final String password, final boolean rememberMe) Constructs a new UsernamePasswordToken encapsulating the username and password submitted, as well as if the user wishes their identity to be remembered across sessions. | |
UsernamePasswordToken() JavaBeans compatible no-arg constructor. | |
UsernamePasswordToken(final String username, final char[] password, final boolean rememberMe, final String host) 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. | |
UsernamePasswordToken(final String username, final String password, final boolean rememberMe, final String host) 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. |
void | clear() Clears out (nulls) the username, password, rememberMe, and inetAddress. |
Object | getCredentials() Returns the #getPassword() password char array. |
String | getHost() Returns the host name or IP string from where the authentication attempt occurs. |
char[] | getPassword() Returns the password submitted during an authentication attempt as a character array. |
Object | getPrincipal() Simply returns #getUsername() getUsername() . |
String | getUsername() Returns the username submitted during an authentication attempt. |
boolean | isRememberMe() Returns true if the submitting user wishes their identity (principal(s)) to be remembered across sessions, false otherwise. |
void | setHost(String host) Sets the host name or IP string from where the authentication attempt occurs. |
void | setPassword(char[] password) Sets the password for submission during an authentication attempt. |
void | setRememberMe(boolean rememberMe) Sets if the submitting user wishes their identity (principal(s)) to be remembered across sessions. |
void | setUsername(String username) Sets the username for submission during an authentication attempt. |
String | toString() Returns the String representation. |