• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
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 #include "cred_info_impl.h"
17 
18 namespace OHOS {
19 namespace UserIam {
20 namespace UserAuth {
CredInfoImpl(uint64_t credentialId,uint64_t templateId,AuthType authType)21 CredInfoImpl::CredInfoImpl(uint64_t credentialId, uint64_t templateId, AuthType authType)
22     : credentialId_(credentialId), templateId_(templateId), authType_(authType)
23 {
24 }
25 
GetCredentialId() const26 uint64_t CredInfoImpl::GetCredentialId() const
27 {
28     return credentialId_;
29 }
30 
GetUserId() const31 int32_t CredInfoImpl::GetUserId() const
32 {
33     return 0;
34 }
35 
GetExecutorIndex() const36 uint64_t CredInfoImpl::GetExecutorIndex() const
37 {
38     return 0;
39 }
40 
GetTemplateId() const41 uint64_t CredInfoImpl::GetTemplateId() const
42 {
43     return templateId_;
44 }
45 
GetAuthType() const46 AuthType CredInfoImpl::GetAuthType() const
47 {
48     return authType_;
49 }
50 
GetExecutorSensorHint() const51 uint32_t CredInfoImpl::GetExecutorSensorHint() const
52 {
53     return 0;
54 }
55 
GetExecutorMatcher() const56 uint32_t CredInfoImpl::GetExecutorMatcher() const
57 {
58     return 0;
59 }
60 } // namespace UserAuth
61 } // namespace UserIam
62 } // namespace OHOS