1 /*
2  * Copyright (c) 2022-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 /**
17  * @file i_inputer.h
18  *
19  * @brief The definition of pinAuth's inputer.
20  * @since 3.1
21  * @version 3.2
22  */
23 
24 #ifndef PINAUTH_IINPUTER_H
25 #define PINAUTH_IINPUTER_H
26 
27 #include "i_inputer_data.h"
28 
29 namespace OHOS {
30 namespace UserIam {
31 namespace PinAuth {
32 class IInputer {
33 public:
34 
35     /**
36      * @brief Obtains the pin data.
37      *
38      * @param authSubType PinAuth sub type.
39      * @param challenge   PinAuth challenge.
40      * @param inputerData PinAuth's inputer data.
41      */
42     virtual void OnGetData(
43         int32_t authSubType, std::vector<uint8_t> challenge, std::shared_ptr<IInputerData> inputerData) = 0;
44 };
45 } // namespace PinAuth
46 } // namespace UserIam
47 } // namespace OHOS
48 
49 #endif // PINAUTH_IINPUTER_H
50