blob: f25b662b738a79f4c307f6c932d22f87dbfc6536 [file] [log] [blame]
Brian Stankeaa6211a2016-02-04 18:22:54 -05001/*
2 * Copyright 2016 Open Networking Laboratory
3 *
4 * Licensed under the Apache License, Version 2.0 (the "License");
5 * you may not use this file except in compliance with the License.
6 * You may obtain a copy of the License at
7 *
8 * http://www.apache.org/licenses/LICENSE-2.0
9 *
10 * Unless required by applicable law or agreed to in writing, software
11 * distributed under the License is distributed on an "AS IS" BASIS,
12 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13 * See the License for the specific language governing permissions and
14 * limitations under the License.
15 */
16
17package org.onosproject.incubator.net.key;
18
19import com.google.common.annotations.Beta;
20import org.onosproject.store.Store;
21
22/**
23 * Manages inventory of device keys; not intended for direct use.
24 */
25@Beta
26public interface DeviceKeyStore extends Store<DeviceKeyEvent, DeviceKeyStoreDelegate> {
27 /**
28 * Creates or updates a device key.
29 *
30 * @param deviceKey device key
31 * @return device key event
32 */
33 DeviceKeyEvent createOrUpdateDeviceKey(DeviceKey deviceKey);
34
35 /**
36 * Deletes a device key by a specific device key identifier.
37 *
38 * @param deviceKeyId device key unique identifier
39 * @return device key event
40 */
41 DeviceKeyEvent deleteDeviceKey(DeviceKeyId deviceKeyId);
42}