1 /*
2  * Copyright (c) 2024 Huawei Device Co., Ltd.
3  * Licensed under the Apache License, Version 2.0 (the "License");
4  * you may not use this file except in compliance with the License.
5  * You may obtain a copy of the License at
6  *
7  *     http://www.apache.org/licenses/LICENSE-2.0
8  *
9  * Unless required by applicable law or agreed to in writing, software
10  * distributed under the License is distributed on an "AS IS" BASIS,
11  * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12  * See the License for the specific language governing permissions and
13  * limitations under the License.
14  */
15 
16 #include "iam_executor_iauth_executor_hdi.h"
17 
18 #include "iam_logger.h"
19 
20 #define LOG_TAG "USER_AUTH_EXECUTOR"
21 
22 namespace OHOS {
23 namespace UserIam {
24 namespace UserAuth {
Enroll(uint64_t scheduleId,const EnrollParam & param,const std::shared_ptr<UserAuth::IExecuteCallback> & callbackObj)25 ResultCode IAuthExecutorHdi::Enroll(uint64_t scheduleId, const EnrollParam &param,
26     const std::shared_ptr<UserAuth::IExecuteCallback> &callbackObj)
27 {
28     IAM_LOGE("method not implemented");
29     return GENERAL_ERROR;
30 }
31 
Authenticate(uint64_t scheduleId,const AuthenticateParam & param,const std::shared_ptr<UserAuth::IExecuteCallback> & callbackObj)32 ResultCode IAuthExecutorHdi::Authenticate(uint64_t scheduleId, const AuthenticateParam &param,
33     const std::shared_ptr<UserAuth::IExecuteCallback> &callbackObj)
34 {
35     IAM_LOGE("method not implemented");
36     return GENERAL_ERROR;
37 }
38 
Collect(uint64_t scheduleId,const CollectParam & param,const std::shared_ptr<UserAuth::IExecuteCallback> & callbackObj)39 ResultCode IAuthExecutorHdi::Collect(uint64_t scheduleId, const CollectParam &param,
40     const std::shared_ptr<UserAuth::IExecuteCallback> &callbackObj)
41 {
42     IAM_LOGE("method not implemented");
43     return GENERAL_ERROR;
44 }
45 
Identify(uint64_t scheduleId,const IdentifyParam & param,const std::shared_ptr<UserAuth::IExecuteCallback> & callbackObj)46 ResultCode IAuthExecutorHdi::Identify(uint64_t scheduleId, const IdentifyParam &param,
47     const std::shared_ptr<UserAuth::IExecuteCallback> &callbackObj)
48 {
49     IAM_LOGE("method not implemented");
50     return GENERAL_ERROR;
51 }
52 
Delete(const std::vector<uint64_t> & templateIdList)53 ResultCode IAuthExecutorHdi::Delete(const std::vector<uint64_t> &templateIdList)
54 {
55     IAM_LOGE("method not implemented");
56     return GENERAL_ERROR;
57 }
58 
SendCommand(PropertyMode commandId,const std::vector<uint8_t> & extraInfo,const std::shared_ptr<UserAuth::IExecuteCallback> & callbackObj)59 ResultCode IAuthExecutorHdi::SendCommand(PropertyMode commandId, const std::vector<uint8_t> &extraInfo,
60     const std::shared_ptr<UserAuth::IExecuteCallback> &callbackObj)
61 {
62     IAM_LOGE("method not implemented");
63     return GENERAL_ERROR;
64 }
65 
GetProperty(const std::vector<uint64_t> & templateIdList,const std::vector<Attributes::AttributeKey> & keys,Property & property)66 ResultCode IAuthExecutorHdi::GetProperty(const std::vector<uint64_t> &templateIdList,
67     const std::vector<Attributes::AttributeKey> &keys, Property &property)
68 {
69     IAM_LOGE("method not implemented");
70     return GENERAL_ERROR;
71 }
72 
SetCachedTemplates(const std::vector<uint64_t> & templateIdList)73 ResultCode IAuthExecutorHdi::SetCachedTemplates(const std::vector<uint64_t> &templateIdList)
74 {
75     IAM_LOGE("method not implemented");
76     return GENERAL_ERROR;
77 }
78 
NotifyCollectorReady(uint64_t scheduleId)79 ResultCode IAuthExecutorHdi::NotifyCollectorReady(uint64_t scheduleId)
80 {
81     IAM_LOGE("method not implemented");
82     return GENERAL_ERROR;
83 }
84 } // namespace UserAuth
85 } // namespace UserIam
86 } // namespace OHOS