Class ActorAuthorizer
java.lang.Object
com.sk89q.worldedit.internal.command.ActorAuthorizer
- All Implemented Interfaces:
Authorizer
Implementation of an authorizer that uses
Subject.hasPermission(String)
.-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionboolean
testPermission
(CommandLocals locals, String permission) Tests whether permission is granted for the given context.
-
Constructor Details
-
ActorAuthorizer
public ActorAuthorizer()
-
-
Method Details
-
testPermission
Description copied from interface:Authorizer
Tests whether permission is granted for the given context.- Specified by:
testPermission
in interfaceAuthorizer
- Parameters:
locals
- localspermission
- the permission string- Returns:
- true if permitted
-