Annotation Interface RequiresAllPermissions
@ExperimentalJSentinelApi
@Retention(RUNTIME)
@Target({TYPE,METHOD})
public @interface RequiresAllPermissions
Requires the current subject to hold all listed
permissions (AND-semantics).
Semantically equivalent to
RequiresPermission(String[]) with multiple values,
but explicit about the AND-semantics — useful when readers should
not have to remember whether @RequiresPermission({"a","b"})
means "a AND b" or "a OR b". When the rule should be OR, use
RequiresAnyPermission instead.
-
Required Element Summary
Required Elements
-
Element Details
-
value
String[] valueRequired permission names. Every entry must be held by the authenticated subject for access to be granted.- Returns:
- permission names; must contain at least one entry
-