AllowList
defines 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
Modifier and TypeInterfaceDescriptionstatic final class
Fluent API builder forAllowList
. -
Method Summary
-
Method Details
-
builder
Create a fluent API builder to configure an instance.- Returns:
- a new builder
-
create
CreateAllowList
from configurtion.- Parameters:
config
- configuration- Returns:
- a new configured
AllowList
-
test
Test whether a value can be permitted.
-