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

    Modifier and Type
    Method
    Description
    boolean
    isMatches(String expression, String permission)
    Returns whether a permission string matches the given expression.
  • Method Details

    • isMatches

      boolean isMatches(String expression, String permission)
      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 against
      permission - permission string being checked
      Returns:
      true if permission is granted by expression