mirror of
https://github.com/spring-projects/spring-security.git
synced 2025-06-25 21:42:17 +00:00
TestingAuthenticationToken takes broader collection type
So that callers do not have to cast. Closes gh-12953
This commit is contained in:
parent
b09a228eaf
commit
f25d76c48f
@ -47,7 +47,7 @@ public class TestingAuthenticationToken extends AbstractAuthenticationToken {
|
|||||||
this(principal, credentials, AuthorityUtils.createAuthorityList(authorities));
|
this(principal, credentials, AuthorityUtils.createAuthorityList(authorities));
|
||||||
}
|
}
|
||||||
|
|
||||||
public TestingAuthenticationToken(Object principal, Object credentials, List<GrantedAuthority> authorities) {
|
public TestingAuthenticationToken(Object principal, Object credentials, Collection<? extends GrantedAuthority> authorities) {
|
||||||
super(authorities);
|
super(authorities);
|
||||||
this.principal = principal;
|
this.principal = principal;
|
||||||
this.credentials = credentials;
|
this.credentials = credentials;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user