1 /* 2 * Copyright (c) 2022-2023 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 #ifndef CO_AUTH_INTERFACE_H 17 #define CO_AUTH_INTERFACE_H 18 19 #include <cstdint> 20 #include <vector> 21 22 #include "iexecutor_callback.h" 23 #include "iam_common_defines.h" 24 25 #include "iremote_broker.h" 26 #include "refbase.h" 27 28 namespace OHOS { 29 namespace UserIam { 30 namespace UserAuth { 31 class CoAuthInterface { 32 public: 33 struct ExecutorRegisterInfo { 34 AuthType authType; 35 ExecutorRole executorRole; 36 uint32_t executorSensorHint; // for multiple sensors index 37 uint32_t executorMatcher; // for executors matcher 38 ExecutorSecureLevel esl; 39 uint32_t maxTemplateAcl {0}; 40 std::vector<uint8_t> publicKey; 41 std::string deviceUdid; 42 std::vector<uint8_t> signedRemoteExecutorInfo; 43 }; 44 }; 45 } // namespace UserAuth 46 } // namespace UserIam 47 } // namespace OHOS 48 #endif // CO_AUTH_INTERFACE_H