Skip to content

Commit 0206001

Browse files
heowcjzheaux
authored andcommitted
Fix typo
Closes gh-10276
1 parent 278bda1 commit 0206001

File tree

3 files changed

+5
-5
lines changed

3 files changed

+5
-5
lines changed

core/src/main/java/org/springframework/security/authentication/jaas/AbstractJaasAuthenticationProvider.java

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
* Copyright 2010-2016 the original author or authors.
2+
* Copyright 2010-2021 the original author or authors.
33
*
44
* Licensed under the Apache License, Version 2.0 (the "License");
55
* you may not use this file except in compliance with the License.
@@ -266,7 +266,7 @@ public void onApplicationEvent(SessionDestroyedEvent event) {
266266
* Publishes the {@link JaasAuthenticationFailedEvent}. Can be overridden by
267267
* subclasses for different functionality
268268
* @param token The authentication token being processed
269-
* @param ase The excetion that caused the authentication failure
269+
* @param ase The exception that caused the authentication failure
270270
*/
271271
protected void publishFailureEvent(UsernamePasswordAuthenticationToken token, AuthenticationException ase) {
272272
if (this.applicationEventPublisher != null) {

core/src/main/java/org/springframework/security/authentication/jaas/JaasAuthenticationProvider.java

+1-1
Original file line numberDiff line numberDiff line change
@@ -224,7 +224,7 @@ private String convertLoginConfigToUrl() throws IOException {
224224
* Publishes the {@link JaasAuthenticationFailedEvent}. Can be overridden by
225225
* subclasses for different functionality
226226
* @param token The authentication token being processed
227-
* @param ase The excetion that caused the authentication failure
227+
* @param ase The exception that caused the authentication failure
228228
*/
229229
@Override
230230
protected void publishFailureEvent(UsernamePasswordAuthenticationToken token, AuthenticationException ase) {

crypto/src/test/java/org/springframework/security/crypto/password/DelegatingPasswordEncoderTests.java

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
* Copyright 2002-2017 the original author or authors.
2+
* Copyright 2002-2021 the original author or authors.
33
*
44
* Licensed under the Apache License, Version 2.0 (the "License");
55
* you may not use this file except in compliance with the License.
@@ -129,7 +129,7 @@ public void matchesWhenUnMappedThenIllegalArgumentException() {
129129
}
130130

131131
@Test
132-
public void matchesWhenNoClosingPrefixStringThenIllegalArgumentExcetion() {
132+
public void matchesWhenNoClosingPrefixStringThenIllegalArgumentException() {
133133
assertThatIllegalArgumentException()
134134
.isThrownBy(() -> this.passwordEncoder.matches(this.rawPassword, "{bcrypt" + this.rawPassword))
135135
.withMessage("There is no PasswordEncoder mapped for the id \"null\"");

0 commit comments

Comments
 (0)