Java org.apache.shiro.authc UsernamePasswordToken fields, constructors, methods, implement or subclass

Example usage for Java org.apache.shiro.authc UsernamePasswordToken fields, constructors, methods, implement or subclass

Introduction

In this page you can find the methods, fields and constructors for org.apache.shiro.authc UsernamePasswordToken.

The text is from its open source code.

Subclass

org.apache.shiro.authc.UsernamePasswordToken has subclasses.
Click this link to see all its subclasses.

Constructor

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.

Method

voidclear()
Clears out (nulls) the username, password, rememberMe, and inetAddress.
ObjectgetCredentials()
Returns the #getPassword() password char array.
StringgetHost()
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.
ObjectgetPrincipal()
Simply returns #getUsername() getUsername() .
StringgetUsername()
Returns the username submitted during an authentication attempt.
booleanisRememberMe()
Returns true if the submitting user wishes their identity (principal(s)) to be remembered across sessions, false otherwise.
voidsetHost(String host)
Sets the host name or IP string from where the authentication attempt occurs.
voidsetPassword(char[] password)
Sets the password for submission during an authentication attempt.
voidsetRememberMe(boolean rememberMe)
Sets if the submitting user wishes their identity (principal(s)) to be remembered across sessions.
voidsetUsername(String username)
Sets the username for submission during an authentication attempt.
StringtoString()
Returns the String representation.