Skip to content

Commit 692ac21

Browse files
committed
Polish setAllowedHostnames
Added JavaDoc to method, including @SInCE attribute Issue gh-4310
1 parent e4e7363 commit 692ac21

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

web/src/main/java/org/springframework/security/web/firewall/StrictHttpFirewall.java

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -237,6 +237,14 @@ public void setAllowUrlEncodedPercent(boolean allowUrlEncodedPercent) {
237237
}
238238
}
239239

240+
/**
241+
* <p>
242+
* Determines which hostnames should be allowed. The default is to allow any hostname.
243+
* </p>
244+
*
245+
* @param allowedHostnames the set of allowed hostnames
246+
* @since 4.2.17
247+
*/
240248
public void setAllowedHostnames(Collection<String> allowedHostnames) {
241249
if (allowedHostnames == null) {
242250
throw new IllegalArgumentException("allowedHostnames cannot be null");

0 commit comments

Comments
 (0)