From dbe2ef8758ada4cac08214d698340b96df8e6679 Mon Sep 17 00:00:00 2001 From: heowc Date: Thu, 16 Sep 2021 23:26:18 +0900 Subject: [PATCH] Fix typo Closes gh-10276 --- .../jaas/AbstractJaasAuthenticationProvider.java | 4 ++-- .../authentication/jaas/JaasAuthenticationProvider.java | 2 +- .../crypto/password/DelegatingPasswordEncoderTests.java | 4 ++-- 3 files changed, 5 insertions(+), 5 deletions(-) diff --git a/core/src/main/java/org/springframework/security/authentication/jaas/AbstractJaasAuthenticationProvider.java b/core/src/main/java/org/springframework/security/authentication/jaas/AbstractJaasAuthenticationProvider.java index 54552a1e0f..42e5de9fd1 100644 --- a/core/src/main/java/org/springframework/security/authentication/jaas/AbstractJaasAuthenticationProvider.java +++ b/core/src/main/java/org/springframework/security/authentication/jaas/AbstractJaasAuthenticationProvider.java @@ -1,5 +1,5 @@ /* - * Copyright 2010-2016 the original author or authors. + * Copyright 2010-2021 the original author or authors. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -287,7 +287,7 @@ public abstract class AbstractJaasAuthenticationProvider * subclasses for different functionality * * @param token The authentication token being processed - * @param ase The excetion that caused the authentication failure + * @param ase The exception that caused the authentication failure */ protected void publishFailureEvent(UsernamePasswordAuthenticationToken token, AuthenticationException ase) { diff --git a/core/src/main/java/org/springframework/security/authentication/jaas/JaasAuthenticationProvider.java b/core/src/main/java/org/springframework/security/authentication/jaas/JaasAuthenticationProvider.java index 34a3f231ee..68fdde7f17 100644 --- a/core/src/main/java/org/springframework/security/authentication/jaas/JaasAuthenticationProvider.java +++ b/core/src/main/java/org/springframework/security/authentication/jaas/JaasAuthenticationProvider.java @@ -247,7 +247,7 @@ public class JaasAuthenticationProvider extends AbstractJaasAuthenticationProvid * subclasses for different functionality * * @param token The authentication token being processed - * @param ase The excetion that caused the authentication failure + * @param ase The exception that caused the authentication failure */ @Override protected void publishFailureEvent(UsernamePasswordAuthenticationToken token, diff --git a/crypto/src/test/java/org/springframework/security/crypto/password/DelegatingPasswordEncoderTests.java b/crypto/src/test/java/org/springframework/security/crypto/password/DelegatingPasswordEncoderTests.java index 8bca684658..439aba4ed8 100644 --- a/crypto/src/test/java/org/springframework/security/crypto/password/DelegatingPasswordEncoderTests.java +++ b/crypto/src/test/java/org/springframework/security/crypto/password/DelegatingPasswordEncoderTests.java @@ -1,5 +1,5 @@ /* - * Copyright 2002-2017 the original author or authors. + * Copyright 2002-2021 the original author or authors. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -135,7 +135,7 @@ public class DelegatingPasswordEncoderTests { } @Test - public void matchesWhenNoClosingPrefixStringThenIllegalArgumentExcetion() { + public void matchesWhenNoClosingPrefixStringThenIllegalArgumentException() { assertThatThrownBy(() -> this.passwordEncoder.matches(this.rawPassword, "{bcrypt" + this.rawPassword)) .isInstanceOf(IllegalArgumentException.class) .hasMessage("There is no PasswordEncoder mapped for the id \"null\"");