|
|
|
@ -45,9 +45,9 @@ public class TestingAuthenticationToken extends AbstractAuthenticationToken { |
|
|
|
this.credentials = credentials; |
|
|
|
this.credentials = credentials; |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
public TestingAuthenticationToken(Object principal, Object credentials, String... authorities) { |
|
|
|
public TestingAuthenticationToken(Object principal, Object credentials, String... authorities) { |
|
|
|
this(principal, credentials, AuthorityUtils.createAuthorityList(authorities)); |
|
|
|
this(principal, credentials, AuthorityUtils.createAuthorityList(authorities)); |
|
|
|
|
|
|
|
setAuthenticated(true); |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
public TestingAuthenticationToken(Object principal, Object credentials, GrantedAuthority[] authorities) { |
|
|
|
public TestingAuthenticationToken(Object principal, Object credentials, GrantedAuthority[] authorities) { |
|
|
|
|