Tran Ngoc Nhan 9 months ago
parent
commit
571c7c81a4

+ 1 - 1
web/src/main/java/org/springframework/security/web/authentication/AbstractAuthenticationProcessingFilter.java

@@ -338,7 +338,7 @@ public abstract class AbstractAuthenticationProcessingFilter extends GenericFilt
 	 * <ol>
 	 * <li>Clears the {@link SecurityContextHolder}</li>
 	 * <li>Stores the exception in the session (if it exists or
-	 * <tt>allowSesssionCreation</tt> is set to <tt>true</tt>)</li>
+	 * <tt>allowSessionCreation</tt> is set to <tt>true</tt>)</li>
 	 * <li>Informs the configured <tt>RememberMeServices</tt> of the failed login</li>
 	 * <li>Delegates additional behaviour to the
 	 * {@link AuthenticationFailureHandler}.</li>

+ 2 - 2
web/src/main/java/org/springframework/security/web/authentication/session/ConcurrentSessionControlAuthenticationStrategy.java

@@ -1,5 +1,5 @@
 /*
- * Copyright 2002-2020 the original author or authors.
+ * Copyright 2002-2024 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.
@@ -174,7 +174,7 @@ public class ConcurrentSessionControlAuthenticationStrategy
 	/**
 	 * Sets the <tt>maxSessions</tt> property. The default value is 1. Use -1 for
 	 * unlimited sessions.
-	 * @param maximumSessions the maximimum number of permitted sessions a user can have
+	 * @param maximumSessions the maximum number of permitted sessions a user can have
 	 * open simultaneously.
 	 */
 	public void setMaximumSessions(int maximumSessions) {

+ 3 - 3
web/src/main/java/org/springframework/security/web/context/AbstractSecurityWebApplicationInitializer.java

@@ -1,5 +1,5 @@
 /*
- * Copyright 2002-2022 the original author or authors.
+ * Copyright 2002-2024 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.
@@ -285,9 +285,9 @@ public abstract class AbstractSecurityWebApplicationInitializer implements WebAp
 	}
 
 	/**
-	 * Determine if the springSecurityFilterChain should be marked as supporting asynch.
+	 * Determine if the springSecurityFilterChain should be marked as supporting async.
 	 * Default is true.
-	 * @return true if springSecurityFilterChain should be marked as supporting asynch
+	 * @return true if springSecurityFilterChain should be marked as supporting async
 	 */
 	protected boolean isAsyncSecuritySupported() {
 		return true;

+ 2 - 2
web/src/main/java/org/springframework/security/web/server/header/ClearSiteDataServerHttpHeadersWriter.java

@@ -1,5 +1,5 @@
 /*
- * Copyright 2002-2019 the original author or authors.
+ * Copyright 2002-2024 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.
@@ -27,7 +27,7 @@ import org.springframework.web.server.ServerWebExchange;
  * </p>
  *
  * <p>
- * For further details pleaes consult <a href="https://www.w3.org/TR/clear-site-data/">W3C
+ * For further details please consult <a href="https://www.w3.org/TR/clear-site-data/">W3C
  * Documentation</a>.
  * </p>
  *

+ 2 - 2
web/src/main/java/org/springframework/security/web/server/header/ContentSecurityPolicyServerHttpHeadersWriter.java

@@ -1,5 +1,5 @@
 /*
- * Copyright 2002-2018 the original author or authors.
+ * Copyright 2002-2024 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.
@@ -23,7 +23,7 @@ import org.springframework.util.Assert;
 import org.springframework.web.server.ServerWebExchange;
 
 /**
- * Writes the {@code Contet-Security-Policy} response header with configured policy
+ * Writes the {@code Content-Security-Policy} response header with configured policy
  * directives.
  *
  * @author Vedran Pavic

+ 3 - 3
web/src/main/java/org/springframework/security/web/webauthn/api/AuthenticatorSelectionCriteria.java

@@ -25,7 +25,7 @@ package org.springframework.security.web.webauthn.api;
  *
  * There is no <a href=
  * "https://www.w3.org/TR/webauthn-3/#dom-authenticatorselectioncriteria-requireresidentkey">requireResidentKey</a>
- * property because it is only for backwards compatability with WebAuthn Level 1.
+ * property because it is only for backwards compatibility with WebAuthn Level 1.
  *
  * @author Rob Winch
  * @since 6.4
@@ -40,7 +40,7 @@ public final class AuthenticatorSelectionCriteria {
 	private final UserVerificationRequirement userVerification;
 
 	// NOTE: There is no requireResidentKey property because it is only for backward
-	// compatability with WebAuthn Level 1
+	// compatibility with WebAuthn Level 1
 
 	/**
 	 * Creates a new instance
@@ -79,7 +79,7 @@ public final class AuthenticatorSelectionCriteria {
 	 * to create a <a href=
 	 * "https://www.w3.org/TR/webauthn-3/#client-side-discoverable-credential">client-side
 	 * discoverable credential</a>.
-	 * @return the residenty key requirement
+	 * @return the resident key requirement
 	 */
 	public ResidentKeyRequirement getResidentKey() {
 		return this.residentKey;