Package ru.tehkode.permissions
Interface PermissionMatcher
public interface PermissionMatcher
Strategy for matching permission nodes against permission expressions.
Implementations define how wildcard and prefix rules are evaluated when checking whether a subject holds a given permission string.
-
Method Summary
-
Method Details
-
isMatches
Returns whether a permission string matches the given expression.Expressions may include wildcards (for example
"essentials.*") depending on the matcher implementation.- Parameters:
expression- permission pattern or node to match againstpermission- permission string being checked- Returns:
trueifpermissionis granted byexpression
-