Package org.apache.struts2.security
Class DefaultAcceptedPatternsChecker
java.lang.Object
org.apache.struts2.security.DefaultAcceptedPatternsChecker
- All Implemented Interfaces:
AcceptedPatternsChecker
-
Nested Class Summary
Nested classes/interfaces inherited from interface org.apache.struts2.security.AcceptedPatternsChecker
AcceptedPatternsChecker.IsAccepted
-
Field Summary
Modifier and TypeFieldDescriptionstatic final String[]
static final String[]
Must matchACCEPTED_PATTERNS
RegEx.static final String
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionAllow access list of all defined excluded patternsisAccepted
(String value) Checks if value matches any of patterns on exclude listprotected void
logPatternChange
(Set<String> newPatterns) void
setAcceptedPatterns
(String commaDelimitedPatterns) Sets excluded patterns during runtimevoid
setAcceptedPatterns
(String[] additionalPatterns) Set excluded patterns during runtimevoid
setAcceptedPatterns
(Set<String> patterns) Sets excluded patterns during runtimeprotected void
setAdditionalAcceptedPatterns
(String acceptablePatterns) protected void
setOverrideAcceptedPatterns
(String acceptablePatterns)
-
Field Details
-
ACCEPTED_PATTERNS
-
NESTING_CHARS
Must matchACCEPTED_PATTERNS
RegEx. Signifies characters which result in a nested lookup via OGNL. -
NESTING_CHARS_STR
-
DMI_AWARE_ACCEPTED_PATTERNS
-
acceptedPatterns
-
-
Constructor Details
-
DefaultAcceptedPatternsChecker
public DefaultAcceptedPatternsChecker() -
DefaultAcceptedPatternsChecker
-
-
Method Details
-
setOverrideAcceptedPatterns
-
setAdditionalAcceptedPatterns
-
setAcceptedPatterns
Description copied from interface:AcceptedPatternsChecker
Sets excluded patterns during runtime- Specified by:
setAcceptedPatterns
in interfaceAcceptedPatternsChecker
- Parameters:
commaDelimitedPatterns
- comma delimited string with patterns
-
setAcceptedPatterns
Description copied from interface:AcceptedPatternsChecker
Set excluded patterns during runtime- Specified by:
setAcceptedPatterns
in interfaceAcceptedPatternsChecker
- Parameters:
additionalPatterns
- array of additional excluded patterns
-
setAcceptedPatterns
Description copied from interface:AcceptedPatternsChecker
Sets excluded patterns during runtime- Specified by:
setAcceptedPatterns
in interfaceAcceptedPatternsChecker
- Parameters:
patterns
- set of additional patterns
-
logPatternChange
-
isAccepted
Description copied from interface:AcceptedPatternsChecker
Checks if value matches any of patterns on exclude list- Specified by:
isAccepted
in interfaceAcceptedPatternsChecker
- Parameters:
value
- to check- Returns:
- object containing result of matched pattern and pattern itself
-
getAcceptedPatterns
Description copied from interface:AcceptedPatternsChecker
Allow access list of all defined excluded patterns- Specified by:
getAcceptedPatterns
in interfaceAcceptedPatternsChecker
- Returns:
- set of excluded patterns
-