org.acegisecurity.providers
public class TestingAuthenticationToken extends AbstractAuthenticationToken
Authentication
implementation that is designed for use whilst unit testing.The
corresponding authentication provider is TestingAuthenticationProvider
.
Constructor and Description |
---|
TestingAuthenticationToken(java.lang.Object principal,
java.lang.Object credentials,
GrantedAuthority[] authorities) |
Modifier and Type | Method and Description |
---|---|
java.lang.Object |
getCredentials()
The credentials that prove the principal is correct.
|
java.lang.Object |
getPrincipal()
The identity of the principal being authenticated.
|
equals, getAuthorities, getDetails, getName, hashCode, isAuthenticated, setAuthenticated, setDetails, toString
public TestingAuthenticationToken(java.lang.Object principal, java.lang.Object credentials, GrantedAuthority[] authorities)
public java.lang.Object getCredentials()
Authentication
AuthenticationManager
. Callers are expected to populate the credentials.Principal
public java.lang.Object getPrincipal()
Authentication
Principal
being authenticatedCopyright © 2004-2014 Interface21, Inc. All Rights Reserved.