Authentication subclasses Principal, so it's directly usable by classes that want a Principal. No implementations need to change if they subclass AbstractAuthenticationToken, as it implements the one and only method required by Principal.
This commit is contained in:
@@ -55,6 +55,7 @@ public class AbstractAuthenticationTokenTests extends TestCase {
|
||||
"ROLE_TWO")});
|
||||
assertEquals("Test", token.getPrincipal());
|
||||
assertEquals("Password", token.getCredentials());
|
||||
assertEquals("Test", token.getName());
|
||||
}
|
||||
|
||||
public void testObjectsEquals() throws Exception {
|
||||
|
||||
Reference in New Issue
Block a user