Class UsernamePasswordAuthenticationToken
java.lang.Object
io.vertigo.account.impl.authentication.UsernamePasswordAuthenticationToken
- All Implemented Interfaces:
AuthenticationToken
public final class UsernamePasswordAuthenticationToken
extends Object
implements AuthenticationToken
- Author:
- npiedeloup
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionReturns the password submitted during an authentication attemptbooleanmatch(AuthenticationToken trustedAuthenticationToken) Checks if this User-submitted AuthenticationToken matches the realm trustedAuthenticationToken.
-
Constructor Details
-
UsernamePasswordAuthenticationToken
- Parameters:
username- the principal submitted for authenticationpassword- the password string submitted for authentication
-
-
Method Details
-
getPrincipal
- Specified by:
getPrincipalin interfaceAuthenticationToken- Returns:
- the username submitted during an authentication attempt.
-
getPassword
Returns the password submitted during an authentication attempt- Returns:
- the password submitted during an authentication attempt.
-
match
Checks if this User-submitted AuthenticationToken matches the realm trustedAuthenticationToken.- Specified by:
matchin interfaceAuthenticationToken- Parameters:
trustedAuthenticationToken- the realm trustedAuthenticationToken- Returns:
- if this token matches
-