Class HttpRequestProperties
java.lang.Object
org.apereo.cas.configuration.model.core.web.security.HttpRequestProperties
- All Implemented Interfaces:
Serializable
@RequiresModule(name="cas-server-core-web",
automated=true)
public class HttpRequestProperties
extends Object
implements Serializable
This is
HttpRequestProperties
.- Since:
- 5.0.0
- See Also:
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionCharacters to block in incoming requests.getCors()
Control CORS settings for requests.Custom response headers to inject into the response as needed.Enforce request header options and security settings.Parameters that are only allowed and accepted during posts.Parameters to sanitize and cross-check in incoming requests.Specify a regular expression that would be checked against the request URL.getWeb()
Control http request settings.boolean
Whether CAS should accept multi-valued parameters in incoming requests.setAllowMultiValueParameters
(boolean allowMultiValueParameters) Whether CAS should accept multi-valued parameters in incoming requests.setCharactersToForbid
(String charactersToForbid) Characters to block in incoming requests.Control CORS settings for requests.setCustomHeaders
(Map<String, String> customHeaders) Custom response headers to inject into the response as needed.Enforce request header options and security settings.setOnlyPostParams
(String onlyPostParams) Parameters that are only allowed and accepted during posts.setParamsToCheck
(String paramsToCheck) Parameters to sanitize and cross-check in incoming requests.setPatternToBlock
(String patternToBlock) Specify a regular expression that would be checked against the request URL.Control http request settings.
-
Constructor Details
-
HttpRequestProperties
public HttpRequestProperties()
-
-
Method Details
-
isAllowMultiValueParameters
public boolean isAllowMultiValueParameters()Whether CAS should accept multi-valued parameters in incoming requests. Example block would to prevent requests where more than oneservice
parameter is specified. -
getOnlyPostParams
Parameters that are only allowed and accepted during posts. -
getParamsToCheck
Parameters to sanitize and cross-check in incoming requests. Separate parameter names by a comma. The special value * instructs the Filter to check all parameters. -
getCharactersToForbid
Characters to block in incoming requests.none
is a special value. Separate characters by a space. -
getPatternToBlock
Specify a regular expression that would be checked against the request URL. If a successful match is found, the request would be blocked. -
getCustomHeaders
Custom response headers to inject into the response as needed. -
getWeb
Control http request settings. -
getHeader
Enforce request header options and security settings. -
getCors
Control CORS settings for requests. -
setAllowMultiValueParameters
Whether CAS should accept multi-valued parameters in incoming requests. Example block would to prevent requests where more than oneservice
parameter is specified.- Returns:
this
.
-
setOnlyPostParams
Parameters that are only allowed and accepted during posts.- Returns:
this
.
-
setParamsToCheck
Parameters to sanitize and cross-check in incoming requests. Separate parameter names by a comma. The special value * instructs the Filter to check all parameters.- Returns:
this
.
-
setCharactersToForbid
Characters to block in incoming requests.none
is a special value. Separate characters by a space.- Returns:
this
.
-
setPatternToBlock
Specify a regular expression that would be checked against the request URL. If a successful match is found, the request would be blocked.- Returns:
this
.
-
setCustomHeaders
Custom response headers to inject into the response as needed.- Returns:
this
.
-
setWeb
Control http request settings.- Returns:
this
.
-
setHeader
Enforce request header options and security settings.- Returns:
this
.
-
setCors
Control CORS settings for requests.- Returns:
this
.
-