2 * Copyright (c) 2000 - 2014 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 Sample service implementation.
27 #include <message-buffer.h>
28 #include <protocols.h>
29 #include <ckm/ckm-type.h>
30 #include <connection-info.h>
37 CKMLogic(const CKMLogic &) = delete;
38 CKMLogic(CKMLogic &&) = delete;
39 CKMLogic& operator=(const CKMLogic &) = delete;
40 CKMLogic& operator=(CKMLogic &&) = delete;
43 RawBuffer unlockUserKey(uid_t user, const std::string &password);
45 RawBuffer lockUserKey(uid_t user);
47 RawBuffer removeUserData(uid_t user);
49 RawBuffer changeUserPassword(
51 const std::string &oldPassword,
52 const std::string &newPassword);
54 RawBuffer resetUserPassword(
56 const std::string &newPassword);
64 const PolicySerializable &policy);
77 const std::string &password);
79 RawBuffer getDataList(
84 RawBuffer createKeyPairRSA(
88 const Alias &privateKeyAlias,
89 const Alias &publicKeyAlias,
90 PolicySerializable policyPrivateKey,
91 PolicySerializable policyPublicKey);
93 RawBuffer createKeyPairECDSA(
97 const Alias &privateKeyAlias,
98 const Alias &publicKeyAlias,
99 PolicySerializable policyPrivateKey,
100 PolicySerializable policyPublicKey);