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 b886caf6f17..9ebc8561c64 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 @@ -165,7 +165,7 @@ public Authentication authenticate(Authentication auth) throws AuthenticationExc } Set authorities; try { - // Create the LoginContext object, and pass our InternallCallbackHandler + // Create the LoginContext object, and pass our InternalCallbackHandler LoginContext loginContext = createLoginContext(new InternalCallbackHandler(auth)); // Attempt to login the user, the LoginContext will call our // InternalCallbackHandler at this point. @@ -284,7 +284,7 @@ protected void publishSuccessEvent(UsernamePasswordAuthenticationToken token) { } /** - * Returns the AuthorityGrannter array that was passed to the + * Returns the AuthorityGranter array that was passed to the * {@link #setAuthorityGranters(AuthorityGranter[])} method, or null if it none were * ever set. * @return The AuthorityGranter array, or null @@ -318,7 +318,7 @@ JaasAuthenticationCallbackHandler[] getCallbackHandlers() { } /** - * Set the JAASAuthentcationCallbackHandler array to handle callback objects generated + * Set the JAASAuthenticationCallbackHandler array to handle callback objects generated * by the LoginContext.login method. * @param callbackHandlers Array of JAASAuthenticationCallbackHandlers */ diff --git a/core/src/main/java/org/springframework/security/authentication/jaas/AuthorityGranter.java b/core/src/main/java/org/springframework/security/authentication/jaas/AuthorityGranter.java index cc04dc8de51..531cf6a7e03 100644 --- a/core/src/main/java/org/springframework/security/authentication/jaas/AuthorityGranter.java +++ b/core/src/main/java/org/springframework/security/authentication/jaas/AuthorityGranter.java @@ -22,7 +22,7 @@ /** * The AuthorityGranter interface is used to map a given principal to role names. *

- * If a Windows NT login module were to be used from JAAS, an AuthrityGranter + * If a Windows NT login module were to be used from JAAS, an AuthorityGranter * implementation could be created to map a NT Group Principal to a ROLE_USER role for * instance. * @@ -34,12 +34,12 @@ public interface AuthorityGranter { * The grant method is called for each principal returned from the LoginContext * subject. If the AuthorityGranter wishes to grant any authorities, it should return * a java.util.Set containing the role names it wishes to grant, such as ROLE_USER. If - * the AuthrityGranter does not wish to grant any authorities it should return null. + * the AuthorityGranter does not wish to grant any authorities it should return null. *

* The set may contain any object as all objects in the returned set will be passed to * the JaasGrantedAuthority constructor using toString(). * @param principal One of the principals from the - * LoginContext.getSubect().getPrincipals() method. + * LoginContext.getSubject().getPrincipals() method. * @return the role names to grant, or null, meaning no roles should be granted to the * principal. */ 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 90588da2c14..6e3d2cba252 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 @@ -67,7 +67,7 @@ * * *

- * The loginContextName should coincide with a given index in the loginConfig specifed. + * The loginContextName should coincide with a given index in the loginConfig specified. * The loginConfig file used in the JUnit tests appears as the following... * *

diff --git a/core/src/main/java/org/springframework/security/authorization/event/AuthorizationEvent.java b/core/src/main/java/org/springframework/security/authorization/event/AuthorizationEvent.java
index c299bfcc1fa..c5ef1b74c9e 100644
--- a/core/src/main/java/org/springframework/security/authorization/event/AuthorizationEvent.java
+++ b/core/src/main/java/org/springframework/security/authorization/event/AuthorizationEvent.java
@@ -66,7 +66,7 @@ public Object getObject() {
 	}
 
 	/**
-	 * Get the response to the princpal's request
+	 * Get the response to the principal's request
 	 * @return
 	 */
 	public AuthorizationDecision getAuthorizationDecision() {
diff --git a/core/src/main/java/org/springframework/security/core/token/KeyBasedPersistenceTokenService.java b/core/src/main/java/org/springframework/security/core/token/KeyBasedPersistenceTokenService.java
index d2ba33c3b37..1ac485515a0 100644
--- a/core/src/main/java/org/springframework/security/core/token/KeyBasedPersistenceTokenService.java
+++ b/core/src/main/java/org/springframework/security/core/token/KeyBasedPersistenceTokenService.java
@@ -133,7 +133,7 @@ public Token verifyToken(String key) {
 	}
 
 	/**
-	 * @return a pseduo random number (hex encoded)
+	 * @return a pseudo random number (hex encoded)
 	 */
 	private String generatePseudoRandomNumber() {
 		byte[] randomBytes = new byte[this.pseudoRandomNumberBytes];
diff --git a/core/src/main/java/org/springframework/security/core/userdetails/ReactiveUserDetailsPasswordService.java b/core/src/main/java/org/springframework/security/core/userdetails/ReactiveUserDetailsPasswordService.java
index 57e55bb2ce0..784da5d0086 100644
--- a/core/src/main/java/org/springframework/security/core/userdetails/ReactiveUserDetailsPasswordService.java
+++ b/core/src/main/java/org/springframework/security/core/userdetails/ReactiveUserDetailsPasswordService.java
@@ -28,7 +28,7 @@ public interface ReactiveUserDetailsPasswordService {
 
 	/**
 	 * Modify the specified user's password. This should change the user's password in the
-	 * persistent user repository (datbase, LDAP etc).
+	 * persistent user repository (database, LDAP etc).
 	 * @param user the user to modify the password for
 	 * @param newPassword the password to change to
 	 * @return the updated UserDetails with the new password
diff --git a/core/src/test/java/org/springframework/security/authentication/UsernamePasswordAuthenticationTokenTests.java b/core/src/test/java/org/springframework/security/authentication/UsernamePasswordAuthenticationTokenTests.java
index acc84f69134..0e25aef80db 100644
--- a/core/src/test/java/org/springframework/security/authentication/UsernamePasswordAuthenticationTokenTests.java
+++ b/core/src/test/java/org/springframework/security/authentication/UsernamePasswordAuthenticationTokenTests.java
@@ -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 void authenticatedPropertyContractIsSatisfied() {
 		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();
diff --git a/web/src/main/java/org/springframework/security/web/authentication/www/BasicAuthenticationFilter.java b/web/src/main/java/org/springframework/security/web/authentication/www/BasicAuthenticationFilter.java
index 8841937c51c..cb390e061fe 100644
--- a/web/src/main/java/org/springframework/security/web/authentication/www/BasicAuthenticationFilter.java
+++ b/web/src/main/java/org/springframework/security/web/authentication/www/BasicAuthenticationFilter.java
@@ -221,7 +221,7 @@ protected boolean authenticationIsRequired(String username) {
 			return true;
 		}
 		// Handle unusual condition where an AnonymousAuthenticationToken is already
-		// present. This shouldn't happen very often, as BasicProcessingFitler is meant to
+		// present. This shouldn't happen very often, as BasicAuthenticationFilter is meant to
 		// be earlier in the filter chain than AnonymousAuthenticationFilter.
 		// Nevertheless, presence of both an AnonymousAuthenticationToken together with a
 		// BASIC authentication request header should indicate reauthentication using the