public interface SecurityModeStore extends org.onosproject.store.Store<SecurityModeEvent,SecurityModeStoreDelegate>
| Modifier and Type | Method and Description |
|---|---|
void |
acceptPolicy(org.onosproject.core.ApplicationId appId,
Set<org.onosproject.security.Permission> permissionSet)
Accept the current security policy of given application.
|
Set<org.onosproject.core.ApplicationId> |
getApplicationIds(String location)
Returns application identifiers that are associated with given bundle location.
|
Set<String> |
getBundleLocations(org.onosproject.core.ApplicationId appId)
Returns bundle locations of specified application.
|
Set<org.onosproject.security.Permission> |
getGrantedPermissions(org.onosproject.core.ApplicationId appId)
Returns an array of permissions that have been granted to given application.
|
Set<org.onosproject.security.Permission> |
getRequestedPermissions(org.onosproject.core.ApplicationId appId)
Returns a list of permissions that have been requested by given application.
|
SecurityModeState |
getState(org.onosproject.core.ApplicationId appId)
Returns state of the specified application.
|
boolean |
isSecured(org.onosproject.core.ApplicationId appId)
Returns true if given application has been secured.
|
boolean |
registerApplication(org.onosproject.core.ApplicationId appId)
Updates the local bundle-application directories.
|
void |
requestPermission(org.onosproject.core.ApplicationId appId,
org.onosproject.security.Permission permission)
Request permission that is required to run given application.
|
void |
reviewPolicy(org.onosproject.core.ApplicationId appId)
Notifies SM-ONOS that operator has reviewed the policy.
|
void |
unregisterApplication(org.onosproject.core.ApplicationId appId)
Removes application info from the local bundle-application directories.
|
boolean registerApplication(org.onosproject.core.ApplicationId appId)
appId - application identifiervoid unregisterApplication(org.onosproject.core.ApplicationId appId)
appId - application identifierSecurityModeState getState(org.onosproject.core.ApplicationId appId)
appId - application identifierSet<String> getBundleLocations(org.onosproject.core.ApplicationId appId)
appId - application identifierSet<org.onosproject.core.ApplicationId> getApplicationIds(String location)
location - OSGi bundle locationSet<org.onosproject.security.Permission> getRequestedPermissions(org.onosproject.core.ApplicationId appId)
appId - application identifierSet<org.onosproject.security.Permission> getGrantedPermissions(org.onosproject.core.ApplicationId appId)
appId - application identifiervoid requestPermission(org.onosproject.core.ApplicationId appId,
org.onosproject.security.Permission permission)
appId - application identifierpermission - permissionboolean isSecured(org.onosproject.core.ApplicationId appId)
appId - application identifiervoid reviewPolicy(org.onosproject.core.ApplicationId appId)
appId - application identifiervoid acceptPolicy(org.onosproject.core.ApplicationId appId,
Set<org.onosproject.security.Permission> permissionSet)
appId - application identifierpermissionSet - array of PermissionInfoCopyright © 2015. All rights reserved.