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 "sec_user_info_impl.h" 17 18 #include "iam_logger.h" 19 20 #define LOG_LABEL UserIam::Common::LABEL_USER_AUTH_SDK 21 22 namespace OHOS { 23 namespace UserIam { 24 namespace UserAuth { SecUserInfoImpl(uint64_t secUserId,std::vector<std::shared_ptr<SecEnrolledInfo>> info)25SecUserInfoImpl::SecUserInfoImpl(uint64_t secUserId, std::vector<std::shared_ptr<SecEnrolledInfo>> info) 26 : secUserId_(secUserId), info_(std::move(info)) 27 { 28 } 29 GetUserId() const30int32_t SecUserInfoImpl::GetUserId() const 31 { 32 return 0; 33 } 34 GetPinSubType() const35PinSubType SecUserInfoImpl::GetPinSubType() const 36 { 37 return PIN_SIX; 38 } 39 GetSecUserId() const40uint64_t SecUserInfoImpl::GetSecUserId() const 41 { 42 return secUserId_; 43 } 44 GetEnrolledInfo() const45std::vector<std::shared_ptr<SecEnrolledInfo>> SecUserInfoImpl::GetEnrolledInfo() const 46 { 47 return info_; 48 } 49 } // namespace UserAuth 50 } // namespace UserIam 51 } // namespace OHOS