@Service public class DistributedSecurityModeStore extends org.onosproject.store.AbstractStore<SecurityModeEvent,SecurityModeStoreDelegate> implements SecurityModeStore
| Modifier and Type | Field and Description |
|---|---|
protected org.onosproject.app.ApplicationAdminService |
applicationAdminService |
protected org.onosproject.store.service.LogicalClockService |
clockService |
protected org.apache.karaf.features.FeaturesService |
featuresService |
protected org.onosproject.store.service.StorageService |
storageService |
| Constructor and Description |
|---|
DistributedSecurityModeStore() |
| 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.
|
void |
activate() |
void |
deactivate() |
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 |
setDelegate(SecurityModeStoreDelegate delegate) |
void |
unregisterApplication(org.onosproject.core.ApplicationId appId)
Removes application info from the local bundle-application directories.
|
void |
unsetDelegate(SecurityModeStoreDelegate delegate) |
hasDelegate, notifyDelegate, notifyDelegate@Reference(cardinality=MANDATORY_UNARY) protected org.onosproject.store.service.StorageService storageService
@Reference(cardinality=MANDATORY_UNARY) protected org.onosproject.store.service.LogicalClockService clockService
@Reference(cardinality=MANDATORY_UNARY) protected org.onosproject.app.ApplicationAdminService applicationAdminService
@Reference(cardinality=MANDATORY_UNARY) protected org.apache.karaf.features.FeaturesService featuresService
@Activate public void activate()
@Deactivate public void deactivate()
public Set<String> getBundleLocations(org.onosproject.core.ApplicationId appId)
SecurityModeStoregetBundleLocations in interface SecurityModeStoreappId - application identifierpublic Set<org.onosproject.core.ApplicationId> getApplicationIds(String location)
SecurityModeStoregetApplicationIds in interface SecurityModeStorelocation - OSGi bundle locationpublic Set<org.onosproject.security.Permission> getRequestedPermissions(org.onosproject.core.ApplicationId appId)
SecurityModeStoregetRequestedPermissions in interface SecurityModeStoreappId - application identifierpublic Set<org.onosproject.security.Permission> getGrantedPermissions(org.onosproject.core.ApplicationId appId)
SecurityModeStoregetGrantedPermissions in interface SecurityModeStoreappId - application identifierpublic void requestPermission(org.onosproject.core.ApplicationId appId,
org.onosproject.security.Permission permission)
SecurityModeStorerequestPermission in interface SecurityModeStoreappId - application identifierpermission - permissionpublic boolean isSecured(org.onosproject.core.ApplicationId appId)
SecurityModeStoreisSecured in interface SecurityModeStoreappId - application identifierpublic void reviewPolicy(org.onosproject.core.ApplicationId appId)
SecurityModeStorereviewPolicy in interface SecurityModeStoreappId - application identifierpublic void acceptPolicy(org.onosproject.core.ApplicationId appId,
Set<org.onosproject.security.Permission> permissionSet)
SecurityModeStoreacceptPolicy in interface SecurityModeStoreappId - application identifierpermissionSet - array of PermissionInfopublic boolean registerApplication(org.onosproject.core.ApplicationId appId)
SecurityModeStoreregisterApplication in interface SecurityModeStoreappId - application identifierpublic void unregisterApplication(org.onosproject.core.ApplicationId appId)
SecurityModeStoreunregisterApplication in interface SecurityModeStoreappId - application identifierpublic SecurityModeState getState(org.onosproject.core.ApplicationId appId)
SecurityModeStoregetState in interface SecurityModeStoreappId - application identifierpublic void setDelegate(SecurityModeStoreDelegate delegate)
setDelegate in interface org.onosproject.store.Store<SecurityModeEvent,SecurityModeStoreDelegate>setDelegate in class org.onosproject.store.AbstractStore<SecurityModeEvent,SecurityModeStoreDelegate>public void unsetDelegate(SecurityModeStoreDelegate delegate)
unsetDelegate in interface org.onosproject.store.Store<SecurityModeEvent,SecurityModeStoreDelegate>unsetDelegate in class org.onosproject.store.AbstractStore<SecurityModeEvent,SecurityModeStoreDelegate>Copyright © 2015. All rights reserved.