浏览代码

Polish setAllowedHostnames

Added JavaDoc to method, including @since attribute

Issue gh-4310
Josh Cummings 6 年之前
父节点
当前提交
692ac213f9
共有 1 个文件被更改,包括 8 次插入0 次删除
  1. 8 0
      web/src/main/java/org/springframework/security/web/firewall/StrictHttpFirewall.java

+ 8 - 0
web/src/main/java/org/springframework/security/web/firewall/StrictHttpFirewall.java

@@ -237,6 +237,14 @@ public class StrictHttpFirewall implements HttpFirewall {
 		}
 	}
 
+	/**
+	 * <p>
+	 * Determines which hostnames should be allowed. The default is to allow any hostname.
+	 * </p>
+	 *
+	 * @param allowedHostnames the set of allowed hostnames
+	 * @since 4.2.17
+	 */
 	public void setAllowedHostnames(Collection<String> allowedHostnames) {
 		if (allowedHostnames == null) {
 			throw new IllegalArgumentException("allowedHostnames cannot be null");