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