mirror of
https://github.com/spring-projects/spring-security.git
synced 2025-07-13 05:43:29 +00:00
Polish setAllowedHostnames
Added JavaDoc to method, including @since attribute Issue gh-4310
This commit is contained in:
parent
e4e7363196
commit
692ac213f9
@ -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) {
|
public void setAllowedHostnames(Collection<String> allowedHostnames) {
|
||||||
if (allowedHostnames == null) {
|
if (allowedHostnames == null) {
|
||||||
throw new IllegalArgumentException("allowedHostnames cannot be null");
|
throw new IllegalArgumentException("allowedHostnames cannot be null");
|
||||||
|
Loading…
x
Reference in New Issue
Block a user