-
public interface AllowList extends Predicate<String>
AllowListdefines a list of allowed and/or denied matches and tests if a particular value conforms to the conditions.The algorithm of testing that a value is allowed:
- Iterate through all allowed patterns, if none matches, value is not permitted
- Iterate through all denied patterns, if any matches, value is not permitted
- Value is permitted
-
-
Nested Class Summary
Nested Classes Modifier and Type Interface Description static classAllowList.BuilderFluent API builder forAllowList.
-
Method Summary
All Methods Static Methods Instance Methods Abstract Methods Modifier and Type Method Description static AllowList.Builderbuilder()Create a fluent API builder to configure an instance.static AllowListcreate(Config config)CreateAllowListfrom configurtion.booleantest(String value)Test whether a value can be permitted.
-
-
-
Method Detail
-
builder
static AllowList.Builder builder()
Create a fluent API builder to configure an instance.- Returns:
- a new builder
-
create
static AllowList create(Config config)
CreateAllowListfrom configurtion.- Parameters:
config- configuration- Returns:
- a new configured
AllowList
-
-