Class 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.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • 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