Class CasEmbeddedApacheTomcatRemoteAddressProperties
java.lang.Object
org.apereo.cas.configuration.model.core.web.tomcat.CasEmbeddedApacheTomcatRemoteAddressProperties
- All Implemented Interfaces:
Serializable
@RequiresModule(name="cas-server-webapp-tomcat")
public class CasEmbeddedApacheTomcatRemoteAddressProperties
extends Object
implements Serializable
- Since:
- 5.3.0
- See Also:
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionA regular expression (using java.util.regex) that the remote client's IP address is compared to.A regular expression (using java.util.regex) that the remote client's IP address is compared to.boolean
Enable filter.setAllowedClientIpAddressRegex
(String allowedClientIpAddressRegex) A regular expression (using java.util.regex) that the remote client's IP address is compared to.setDeniedClientIpAddressRegex
(String deniedClientIpAddressRegex) A regular expression (using java.util.regex) that the remote client's IP address is compared to.setEnabled
(boolean enabled) Enable filter.
-
Constructor Details
-
CasEmbeddedApacheTomcatRemoteAddressProperties
public CasEmbeddedApacheTomcatRemoteAddressProperties()
-
-
Method Details
-
isEnabled
public boolean isEnabled()Enable filter. -
getAllowedClientIpAddressRegex
A regular expression (using java.util.regex) that the remote client's IP address is compared to. If this attribute is specified, the remote address MUST match for this request to be accepted. If this attribute is not specified, all requests will be accepted UNLESS the remote address matches a deny pattern. -
getDeniedClientIpAddressRegex
A regular expression (using java.util.regex) that the remote client's IP address is compared to. If this attribute is specified, the remote address MUST NOT match for this request to be accepted. If this attribute is not specified, request acceptance is governed solely by the accept attribute. -
setEnabled
Enable filter.- Returns:
this
.
-
setAllowedClientIpAddressRegex
public CasEmbeddedApacheTomcatRemoteAddressProperties setAllowedClientIpAddressRegex(String allowedClientIpAddressRegex) A regular expression (using java.util.regex) that the remote client's IP address is compared to. If this attribute is specified, the remote address MUST match for this request to be accepted. If this attribute is not specified, all requests will be accepted UNLESS the remote address matches a deny pattern.- Returns:
this
.
-
setDeniedClientIpAddressRegex
public CasEmbeddedApacheTomcatRemoteAddressProperties setDeniedClientIpAddressRegex(String deniedClientIpAddressRegex) A regular expression (using java.util.regex) that the remote client's IP address is compared to. If this attribute is specified, the remote address MUST NOT match for this request to be accepted. If this attribute is not specified, request acceptance is governed solely by the accept attribute.- Returns:
this
.
-