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…
Reference in New Issue