Fix typos in spring-security core module

This commit is contained in:
Martin Lukas
2023-10-29 12:54:32 +00:00
committed by Marcus Hert Da Coregio
parent 318dec845a
commit 1589d19c8b
7 changed files with 12 additions and 12 deletions

View File

@@ -35,7 +35,7 @@ public class UsernamePasswordAuthenticationTokenTests {
public void authenticatedPropertyContractIsSatisfied() {
UsernamePasswordAuthenticationToken grantedToken = UsernamePasswordAuthenticationToken.authenticated("Test",
"Password", AuthorityUtils.NO_AUTHORITIES);
// check default given we passed some GrantedAuthorty[]s (well, we passed empty
// check default given we passed some GrantedAuthority[]s (well, we passed empty
// list)
assertThat(grantedToken.isAuthenticated()).isTrue();
// check explicit set to untrusted (we can safely go from trusted to untrusted,
@@ -43,7 +43,7 @@ public class UsernamePasswordAuthenticationTokenTests {
grantedToken.setAuthenticated(false);
assertThat(!grantedToken.isAuthenticated()).isTrue();
// Now let's create a UsernamePasswordAuthenticationToken without any
// GrantedAuthorty[]s (different constructor)
// GrantedAuthority[]s (different constructor)
UsernamePasswordAuthenticationToken noneGrantedToken = UsernamePasswordAuthenticationToken
.unauthenticated("Test", "Password");
assertThat(!noneGrantedToken.isAuthenticated()).isTrue();