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 #include "update_pin_param_impl.h"
17
18 namespace OHOS {
19 namespace UserIam {
20 namespace UserAuth {
UpdatePinParamImpl(uint64_t oldCredentialId,const std::vector<uint8_t> & oldRootSecret,const std::vector<uint8_t> & rootSecret,const std::vector<uint8_t> & authToken)21 UpdatePinParamImpl::UpdatePinParamImpl(uint64_t oldCredentialId, const std::vector<uint8_t> &oldRootSecret,
22 const std::vector<uint8_t> &rootSecret, const std::vector<uint8_t> &authToken)
23 : oldCredentialId_(oldCredentialId), oldRootSecret_(oldRootSecret), rootSecret_(rootSecret), authToken_(authToken)
24 {
25 }
26
GetOldCredentialId() const27 uint64_t UpdatePinParamImpl::GetOldCredentialId() const
28 {
29 return oldCredentialId_;
30 }
31
GetOldRootSecret() const32 std::vector<uint8_t> UpdatePinParamImpl::GetOldRootSecret() const
33 {
34 return oldRootSecret_;
35 }
36
GetRootSecret() const37 std::vector<uint8_t> UpdatePinParamImpl::GetRootSecret() const
38 {
39 return rootSecret_;
40 }
41
GetAuthToken() const42 std::vector<uint8_t> UpdatePinParamImpl::GetAuthToken() const
43 {
44 return authToken_;
45 }
46
47 } // namespace UserAuth
48 } // namespace UserIam
49 } // namespace OHOS