Package org.onosproject.net.key
Interface DeviceKeyStore
-
- All Superinterfaces:
Store<DeviceKeyEvent,DeviceKeyStoreDelegate>
@Beta public interface DeviceKeyStore extends Store<DeviceKeyEvent,DeviceKeyStoreDelegate>
Manages inventory of device keys; not intended for direct use.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description void
createOrUpdateDeviceKey(DeviceKey deviceKey)
Creates or updates a device key.void
deleteDeviceKey(DeviceKeyId deviceKeyId)
Deletes a device key by a specific device key identifier.DeviceKey
getDeviceKey(DeviceKeyId deviceKeyId)
Returns the device key matching a device key identifier.java.util.Collection<DeviceKey>
getDeviceKeys()
Returns all device keys.-
Methods inherited from interface org.onosproject.store.Store
hasDelegate, setDelegate, unsetDelegate
-
-
-
-
Method Detail
-
createOrUpdateDeviceKey
void createOrUpdateDeviceKey(DeviceKey deviceKey)
Creates or updates a device key.- Parameters:
deviceKey
- device key
-
deleteDeviceKey
void deleteDeviceKey(DeviceKeyId deviceKeyId)
Deletes a device key by a specific device key identifier.- Parameters:
deviceKeyId
- device key unique identifier
-
getDeviceKeys
java.util.Collection<DeviceKey> getDeviceKeys()
Returns all device keys.- Returns:
- set of device keys
-
getDeviceKey
DeviceKey getDeviceKey(DeviceKeyId deviceKeyId)
Returns the device key matching a device key identifier.- Parameters:
deviceKeyId
- device key unique identifier- Returns:
- device key
-
-