Package org.onosproject.security
Interface SecurityAdminService
-
@Beta public interface SecurityAdminService
Security-Mode ONOS service.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description void
acceptPolicy(ApplicationId appId)
Accepts and enforces security policy to specified application.Map<Integer,List<Permission>>
getPrintableGrantedPermissions(ApplicationId appId)
Returns sorted granted permission Map.Map<Integer,List<Permission>>
getPrintableRequestedPermissions(ApplicationId appId)
Returns sorted requested permission Map.Map<Integer,List<Permission>>
getPrintableSpecifiedPermissions(ApplicationId appId)
Returns sorted developer specified permission Map.boolean
isSecured(ApplicationId appId)
Returns true if security policy has been enforced to specified application.void
register(ApplicationId appId)
Register application to SM-ONOS subsystem.void
review(ApplicationId appId)
Changes SecurityModeState of specified application to REVIEWED.
-
-
-
Method Detail
-
isSecured
boolean isSecured(ApplicationId appId)
Returns true if security policy has been enforced to specified application.- Parameters:
appId
- application identifier- Returns:
- true if secured.
-
review
void review(ApplicationId appId)
Changes SecurityModeState of specified application to REVIEWED.- Parameters:
appId
- application identifier
-
acceptPolicy
void acceptPolicy(ApplicationId appId)
Accepts and enforces security policy to specified application.- Parameters:
appId
- application identifier
-
register
void register(ApplicationId appId)
Register application to SM-ONOS subsystem.- Parameters:
appId
- application identifier
-
getPrintableSpecifiedPermissions
Map<Integer,List<Permission>> getPrintableSpecifiedPermissions(ApplicationId appId)
Returns sorted developer specified permission Map.- Parameters:
appId
- application identifier- Returns:
- Map of list of permissions sorted by permission type
-
getPrintableGrantedPermissions
Map<Integer,List<Permission>> getPrintableGrantedPermissions(ApplicationId appId)
Returns sorted granted permission Map.- Parameters:
appId
- application identifier- Returns:
- Map of list of permissions sorted by permission type
-
getPrintableRequestedPermissions
Map<Integer,List<Permission>> getPrintableRequestedPermissions(ApplicationId appId)
Returns sorted requested permission Map.- Parameters:
appId
- application identifier- Returns:
- Map of list of permissions sorted by permission type
-
-