• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
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 /**
17  * @file user_access_ctrl_client_callback.h
18  *
19  * @brief Callback definitions returned by user auth client.
20  * @since 5.1
21  * @version 1.0
22  */
23 
24 #ifndef USER_ACCESS_CTRL_CLIENT_CALLBACK_H
25 #define USER_ACCESS_CTRL_CLIENT_CALLBACK_H
26 
27 #include "attributes.h"
28 
29 namespace OHOS {
30 namespace UserIam {
31 namespace UserAuth {
32 class VerifyTokenCallback {
33 public:
34     /**
35      * @brief The callback return verify token result.
36      *
37      * @param result The result success or error code{@link ResultCode}.
38      * @param extraInfo Other related information about verify token.
39      */
40     virtual void OnResult(int32_t result, const Attributes &extraInfo) = 0;
41 };
42 } // namespace UserAuth
43 } // namespace UserIam
44 } // namespace OHOS
45 #endif // USER_ACCESS_CTRL_CLIENT_CALLBACK_H