/*
- * Copyright (c) 2000 - 2014 Samsung Electronics Co., Ltd All Rights Reserved
+ * Copyright (c) 2000 - 2015 Samsung Electronics Co., Ltd All Rights Reserved
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
*/
#pragma once
-#include <thread-service.h>
+#include <mutex>
+#include <message-service.h>
#include <message-buffer.h>
#include <dpl/exception.h>
class CKMLogic;
-class CKMService : public CKM::ThreadService
+class CKMService : public ThreadMessageService<MsgKeyRequest>
{
public:
CKMService();
ServiceDescriptionVector GetServiceDescription();
private:
+ virtual void SetCommManager(CommMgr *manager);
+
class Exception {
public:
DECLARE_EXCEPTION_TYPE(CKM::Exception, Base)
bool ProcessOne(
const ConnectionID &conn,
- ConnectionInfo &info);
+ ConnectionInfo &info,
+ bool allowed);
RawBuffer ProcessControl(
MessageBuffer &buffer);
RawBuffer ProcessStorage(
Credentials &cred,
- MessageBuffer &buffer);
+ MessageBuffer &buffer,
+ bool allowed);
+
+ virtual void ProcessMessage(MsgKeyRequest msg);
CKMLogic *m_logic;
};