File tree Expand file tree Collapse file tree 1 file changed +12
-4
lines changed
web/src/main/java/org/springframework/security/web/firewall Expand file tree Collapse file tree 1 file changed +12
-4
lines changed Original file line number Diff line number Diff line change 1616
1717package org .springframework .security .web .firewall ;
1818
19- import org .springframework .http .HttpMethod ;
20-
21- import javax .servlet .http .HttpServletRequest ;
22- import javax .servlet .http .HttpServletResponse ;
2319import java .util .Arrays ;
2420import java .util .Collection ;
2521import java .util .Collections ;
2622import java .util .HashSet ;
2723import java .util .List ;
2824import java .util .Set ;
2925import java .util .function .Predicate ;
26+ import javax .servlet .http .HttpServletRequest ;
27+ import javax .servlet .http .HttpServletResponse ;
28+
29+ import org .springframework .http .HttpMethod ;
3030
3131/**
3232 * <p>
@@ -305,6 +305,14 @@ public void setAllowUrlEncodedPercent(boolean allowUrlEncodedPercent) {
305305 }
306306 }
307307
308+ /**
309+ * <p>
310+ * Determines which hostnames should be allowed. The default is to allow any hostname.
311+ * </p>
312+ *
313+ * @param allowedHostnames the predicate for testing hostnames
314+ * @since 5.2
315+ */
308316 public void setAllowedHostnames (Predicate <String > allowedHostnames ) {
309317 if (allowedHostnames == null ) {
310318 throw new IllegalArgumentException ("allowedHostnames cannot be null" );
You can’t perform that action at this time.
0 commit comments