2 * Copyright (c) 2000 - 2015 Samsung Electronics Co., Ltd All Rights Reserved
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
8 * http://www.apache.org/licenses/LICENSE-2.0
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
18 * @author Bartlomiej Grzelewski (b.grzelewski@samsung.com)
20 * @brief CKM service implementation.
25 #include <message-service.h>
26 #include <message-buffer.h>
27 #include <dpl/exception.h>
33 class CKMService : public ThreadMessageService<MsgKeyRequest>
37 CKMService(const CKMService &) = delete;
38 CKMService(CKMService &&) = delete;
39 CKMService& operator=(const CKMService &) = delete;
40 CKMService& operator=(CKMService &&) = delete;
42 virtual void Start(void);
43 virtual void Stop(void);
45 virtual ~CKMService();
47 ServiceDescriptionVector GetServiceDescription();
50 virtual void SetCommManager(CommMgr *manager);
54 DECLARE_EXCEPTION_TYPE(CKM::Exception, Base)
55 DECLARE_EXCEPTION_TYPE(Base, BrokenProtocol)
59 const ConnectionID &conn,
63 RawBuffer ProcessControl(
64 MessageBuffer &buffer);
66 RawBuffer ProcessStorage(
68 MessageBuffer &buffer,
71 virtual void ProcessMessage(MsgKeyRequest msg);