mirror of
https://github.com/spring-projects/spring-security.git
synced 2025-07-12 21:33:30 +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) {
|
||||
if (allowedHostnames == null) {
|
||||
throw new IllegalArgumentException("allowedHostnames cannot be null");
|
||||
|
Loading…
x
Reference in New Issue
Block a user