Package org.onosproject.security
Class AppGuard
- java.lang.Object
-
- org.onosproject.security.AppGuard
-
@Beta public final class AppGuard extends java.lang.Object
Aids SM-ONOS to perform API-level permission checking.
-
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static void
checkPermission(AppPermission.Type permission)
Checks if the caller has the required permission only when security-mode is enabled.
-
-
-
Method Detail
-
checkPermission
public static void checkPermission(AppPermission.Type permission)
Checks if the caller has the required permission only when security-mode is enabled.- Parameters:
permission
- permission to be checked
-
-