Class CSRFUtil
java.lang.Object
org.apache.jackrabbit.webdav.util.CSRFUtil
CSRFUtil...-
Field Summary
FieldsModifier and TypeFieldDescriptionRequest content types for CSRF checking, see JCR-3909, JCR-4002, and JCR-4009static final StringConstant used to -
Constructor Summary
ConstructorsConstructorDescriptionCreates a new instance from the specified configuration, which defines the behaviour of the referrer based CSRF protection as follows: If config isnullor empty string the default behaviour is to allow only requests with an empty referrer header or a referrer host equal to the server host A comma separated list of additional allowed referrer hosts which are valid in addition to default behaviour (see above). The valueDISABLEDmay be used to disable the referrer checking altogether -
Method Summary
-
Field Details
-
DISABLED
Constant used to- See Also:
-
CONTENT_TYPES
Request content types for CSRF checking, see JCR-3909, JCR-4002, and JCR-4009
-
-
Constructor Details
-
CSRFUtil
Creates a new instance from the specified configuration, which defines the behaviour of the referrer based CSRF protection as follows:- If config is
nullor empty string the default behaviour is to allow only requests with an empty referrer header or a referrer host equal to the server host - A comma separated list of additional allowed referrer hosts which are valid in addition to default behaviour (see above).
- The value
DISABLEDmay be used to disable the referrer checking altogether
- Parameters:
config- The configuration value which may be any of the following:nullor empty string for the default behaviour, which only allows requests with an empty referrer header or a referrer host equal to the server host- A comma separated list of additional allowed referrer hosts which are valid in addition to default behaviour (see above).
DISABLEDin order to disable the referrer checking altogether
- If config is
-
-
Method Details
-
isValidRequest
-