Interface AuthenticationToken
- All Known Implementing Classes:
UsernameAuthenticationToken,UsernamePasswordAuthenticationToken
public interface AuthenticationToken
Authentification token.
- Author:
- npiedeloup
-
Method Summary
Modifier and TypeMethodDescriptionbooleanmatch(AuthenticationToken trustedAuthenticationToken) Checks if this User-submitted AuthenticationToken matches the realm trustedAuthenticationToken.
-
Method Details
-
getPrincipal
String getPrincipal()- Returns:
- the username submitted during an authentication attempt.
-
match
Checks if this User-submitted AuthenticationToken matches the realm trustedAuthenticationToken.- Parameters:
trustedAuthenticationToken- the realm trustedAuthenticationToken- Returns:
- if this token matches
-