File tree Expand file tree Collapse file tree 1 file changed +10
-2
lines changed
web/src/main/java/org/springframework/security/web/firewall Expand file tree Collapse file tree 1 file changed +10
-2
lines changed Original file line number Diff line number Diff line change 16
16
17
17
package org .springframework .security .web .firewall ;
18
18
19
- import javax .servlet .http .HttpServletRequest ;
20
- import javax .servlet .http .HttpServletResponse ;
21
19
import java .util .Arrays ;
22
20
import java .util .Collection ;
23
21
import java .util .Collections ;
24
22
import java .util .HashSet ;
25
23
import java .util .List ;
26
24
import java .util .Set ;
27
25
import java .util .function .Predicate ;
26
+ import javax .servlet .http .HttpServletRequest ;
27
+ import javax .servlet .http .HttpServletResponse ;
28
28
29
29
/**
30
30
* <p>
@@ -238,6 +238,14 @@ public void setAllowUrlEncodedPercent(boolean allowUrlEncodedPercent) {
238
238
}
239
239
}
240
240
241
+ /**
242
+ * <p>
243
+ * Determines which hostnames should be allowed. The default is to allow any hostname.
244
+ * </p>
245
+ *
246
+ * @param allowedHostnames the predicate for testing hostnames
247
+ * @since 5.0.17
248
+ */
241
249
public void setAllowedHostnames (Predicate <String > allowedHostnames ) {
242
250
if (allowedHostnames == null ) {
243
251
throw new IllegalArgumentException ("allowedHostnames cannot be null" );
You can’t perform that action at this time.
0 commit comments