1 /* 2 * Copyright (c) 2022 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 /** 17 * @file iam_executor_iauth_driver_hdi.h 18 * 19 * @brief Hardware device interface for authenticate driver. 20 * @since 3.1 21 * @version 3.2 22 */ 23 24 #ifndef IAM_EXECUTOR_IAUTH_DRIVER_HDI_H 25 #define IAM_EXECUTOR_IAUTH_DRIVER_HDI_H 26 27 #include <cstdint> 28 29 #include "iremote_broker.h" 30 31 #include "iam_executor_iauth_executor_hdi.h" 32 33 namespace OHOS { 34 namespace UserIam { 35 namespace UserAuth { 36 class IAuthDriverHdi { 37 public: 38 /** 39 * @brief Default constructor. 40 */ 41 IAuthDriverHdi() = default; 42 43 /** 44 * @brief Deconstructor. 45 */ 46 virtual ~IAuthDriverHdi() = default; 47 48 /** 49 * @brief Get the list of executor. 50 * 51 * @param executorList The list of executor. 52 */ 53 virtual void GetExecutorList(std::vector<std::shared_ptr<UserAuth::IAuthExecutorHdi>> &executorList) = 0; 54 55 /** 56 * @brief On hdi disconnect. 57 */ 58 virtual void OnHdiDisconnect() = 0; 59 }; 60 } // namespace UserAuth 61 } // namespace UserIam 62 } // namespace OHOS 63 64 #endif // IAM_EXECUTOR_IAUTH_DRIVER_HDI_H