Class UsernameAuthenticationToken
java.lang.Object
io.vertigo.account.impl.authentication.UsernameAuthenticationToken
- All Implemented Interfaces:
AuthenticationToken
- Author:
- npiedeloup
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleanmatch(AuthenticationToken trustedAuthenticationToken) Checks if this User-submitted AuthenticationToken matches the realm trustedAuthenticationToken.
-
Constructor Details
-
UsernameAuthenticationToken
- Parameters:
username- the username submitted for authentication
-
-
Method Details
-
getPrincipal
- Specified by:
getPrincipalin interfaceAuthenticationToken- Returns:
- the username 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
-