Package org.apache.struts2.security
Class DefaultNotExcludedAcceptedPatternsChecker
java.lang.Object
org.apache.struts2.security.DefaultNotExcludedAcceptedPatternsChecker
- All Implemented Interfaces:
AcceptedPatternsChecker
,ExcludedPatternsChecker
,NotExcludedAcceptedPatternsChecker
public class DefaultNotExcludedAcceptedPatternsChecker
extends Object
implements NotExcludedAcceptedPatternsChecker
-
Nested Class Summary
Nested classes/interfaces inherited from interface org.apache.struts2.security.AcceptedPatternsChecker
AcceptedPatternsChecker.IsAccepted
Nested classes/interfaces inherited from interface org.apache.struts2.security.ExcludedPatternsChecker
ExcludedPatternsChecker.IsExcluded
Nested classes/interfaces inherited from interface org.apache.struts2.security.NotExcludedAcceptedPatternsChecker
NotExcludedAcceptedPatternsChecker.IsAllowed
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionAllow access list of all defined excluded patternsAllow access list of all defined excluded patternsisAccepted
(String value) Checks if value matches any of patterns on exclude listChecks if value doesn't match excluded pattern and matches accepted patternisExcluded
(String value) Checks if value matches any of patterns on exclude listvoid
setAcceptedPatterns
(String commaDelimitedPatterns) Sets excluded patterns during runtimevoid
setAcceptedPatterns
(String[] patterns) Set excluded patterns during runtimevoid
setAcceptedPatterns
(Set<String> patterns) Sets excluded patterns during runtimevoid
setAcceptedPatterns
(AcceptedPatternsChecker acceptedPatterns) void
setExcludedPatterns
(String commaDelimitedPatterns) Sets excluded patterns during runtimevoid
setExcludedPatterns
(String[] patterns) Sets excluded patterns during runtimevoid
setExcludedPatterns
(Set<String> patterns) Sets excluded patterns during runtimevoid
setExcludedPatterns
(ExcludedPatternsChecker excludedPatterns)
-
Constructor Details
-
DefaultNotExcludedAcceptedPatternsChecker
public DefaultNotExcludedAcceptedPatternsChecker()
-
-
Method Details
-
setExcludedPatterns
-
setAcceptedPatterns
-
isAllowed
Description copied from interface:NotExcludedAcceptedPatternsChecker
Checks if value doesn't match excluded pattern and matches accepted pattern- Specified by:
isAllowed
in interfaceNotExcludedAcceptedPatternsChecker
- Parameters:
value
- to check- Returns:
- object containing result of matched pattern and pattern itself
-
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
-
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:
patterns
- 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
-
getAcceptedPatterns
Description copied from interface:AcceptedPatternsChecker
Allow access list of all defined excluded patterns- Specified by:
getAcceptedPatterns
in interfaceAcceptedPatternsChecker
- Returns:
- set of excluded patterns
-
isExcluded
Description copied from interface:ExcludedPatternsChecker
Checks if value matches any of patterns on exclude list- Specified by:
isExcluded
in interfaceExcludedPatternsChecker
- Parameters:
value
- to check- Returns:
- object containing result of matched pattern and pattern itself
-
setExcludedPatterns
Description copied from interface:ExcludedPatternsChecker
Sets excluded patterns during runtime- Specified by:
setExcludedPatterns
in interfaceExcludedPatternsChecker
- Parameters:
commaDelimitedPatterns
- comma delimited string with patterns
-
setExcludedPatterns
Description copied from interface:ExcludedPatternsChecker
Sets excluded patterns during runtime- Specified by:
setExcludedPatterns
in interfaceExcludedPatternsChecker
- Parameters:
patterns
- array of additional excluded patterns
-
setExcludedPatterns
Description copied from interface:ExcludedPatternsChecker
Sets excluded patterns during runtime- Specified by:
setExcludedPatterns
in interfaceExcludedPatternsChecker
- Parameters:
patterns
- set of additional patterns
-
getExcludedPatterns
Description copied from interface:ExcludedPatternsChecker
Allow access list of all defined excluded patterns- Specified by:
getExcludedPatterns
in interfaceExcludedPatternsChecker
- Returns:
- set of excluded patterns
-