public class AuthorityChecker extends Object
| 限定符和类型 | 方法和说明 |
|---|---|
static boolean |
check(String username,
List<? extends PartialPath> paths,
Operator.OperatorType type,
String targetUser)
check permission.
|
static int |
translateToPermissionId(Operator.OperatorType type) |
public static boolean check(String username, List<? extends PartialPath> paths, Operator.OperatorType type, String targetUser) throws AuthException
username - usernamepaths - paths in List structuretype - Operator typetargetUser - target userAuthException - Authentication Exceptionpublic static int translateToPermissionId(Operator.OperatorType type)
Copyright © 2022 The Apache Software Foundation. All rights reserved.