Service implementation.
[platform/core/security/key-manager.git] / src / manager / service / ckm-logic.cpp
1 /*
2  *  Copyright (c) 2000 - 2014 Samsung Electronics Co., Ltd All Rights Reserved
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  *
17  * @file        ckm-logic.cpp
18  * @author      Bartlomiej Grzelewski (b.grzelewski@samsung.com)
19  * @version     1.0
20  * @brief       Sample service implementation.
21  */
22 #include <ckm-logic.h>
23
24 namespace CKM {
25
26 CKMLogic::CKMLogic(){}
27 CKMLogic::~CKMLogic(){}
28
29 RawBuffer CKMLogic::unlockUserKey(const std::string &user, const RawBuffer &password) {
30     (void)user;
31     (void)password;
32     return RawBuffer();
33 }
34
35 RawBuffer CKMLogic::lockUserKey(const std::string &user) {
36     (void)user;
37     return RawBuffer();
38 }
39
40 RawBuffer CKMLogic::removeUserData(const std::string &user) {
41     (void)user;
42     return RawBuffer();
43 }
44
45 RawBuffer CKMLogic::changeUserPassword(
46     const std::string &user,
47     const RawBuffer &oldPassword,
48     const RawBuffer &newPassword)
49 {
50     (void)user;
51     (void)oldPassword;
52     (void)newPassword;
53     return RawBuffer();
54 }
55
56 RawBuffer CKMLogic::resetUserPassword(
57     const std::string &user,
58     const RawBuffer &newPassword)
59 {
60     (void)user;
61     (void)newPassword;
62     return RawBuffer();
63 }
64
65 RawBuffer CKMLogic::saveData(
66     Credentials &cred,
67     int commandId,
68     DBDataType dataType,
69     const Alias &alias,
70     const RawData &key,
71     const PolicySerializable &policy)
72 {
73     (void)cred;
74     (void)commandId;
75     (void)dataType;
76     (void)alias;
77     (void)key;
78     (void)policy;
79     return RawData();
80 }
81
82 RawBuffer CKMLogic::removeData(
83     Credentials &cred,
84     int commandId,
85     DBDataType dataType,
86     const Alias &alias)
87 {
88     (void)cred;
89     (void)commandId;
90     (void)dataType;
91     (void)alias;
92     return RawData();
93 }
94
95 RawBuffer CKMLogic::getData(
96     Credentials &cred,
97     int commandId,
98     DBDataType dataType,
99     const Alias &alias,
100     const RawData &password)
101 {
102     (void)cred;
103     (void)commandId;
104     (void)dataType;
105     (void)alias;
106     (void)password;
107     return RawData();
108 }
109
110 } // namespace CKM
111