1 /*
2 * Copyright (c) 2023-2023 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 "publish_event_adapter.h"
17
18 namespace OHOS {
19 namespace UserIam {
20 namespace UserAuth {
21
GetInstance()22 PublishEventAdapter &PublishEventAdapter::GetInstance()
23 {
24 static PublishEventAdapter instance;
25 return instance;
26 }
27
PublishDeletedEvent(int32_t userId)28 void PublishEventAdapter::PublishDeletedEvent(int32_t userId)
29 {
30 (void)mutex_;
31 (void)userId_;
32 (void)scheduleId_;
33 (void)credChangeEventInfo_;
34 (void)reEnrollFlag_;
35 (void)userId;
36 }
37
PublishCreatedEvent(int32_t userId,uint64_t scheduleId)38 void PublishEventAdapter::PublishCreatedEvent(int32_t userId, uint64_t scheduleId)
39 {
40 (void)userId;
41 (void)scheduleId;
42 }
43
PublishUpdatedEvent(int32_t userId,uint64_t scheduleId)44 void PublishEventAdapter::PublishUpdatedEvent(int32_t userId, uint64_t scheduleId)
45 {
46 (void)userId;
47 (void)scheduleId;
48 }
49
CachePinUpdateParam(int32_t userId,uint64_t scheduleId,const CredChangeEventInfo & changeInfo)50 void PublishEventAdapter::CachePinUpdateParam(int32_t userId, uint64_t scheduleId,
51 const CredChangeEventInfo &changeInfo)
52 {
53 (void)userId;
54 (void)scheduleId;
55 (void)changeInfo;
56 }
57
CachePinUpdateParam(bool reEnrollFlag)58 void PublishEventAdapter::CachePinUpdateParam(bool reEnrollFlag)
59 {
60 (void)reEnrollFlag;
61 }
62
ClearPinUpdateCacheInfo()63 void PublishEventAdapter::ClearPinUpdateCacheInfo() {}
64
PublishCredentialUpdatedEvent(int32_t userId,int32_t authType,uint32_t credentialCount)65 void PublishEventAdapter::PublishCredentialUpdatedEvent(int32_t userId, int32_t authType, uint32_t credentialCount)
66 {
67 (void)userId;
68 (void)authType;
69 (void)credentialCount;
70 }
71
72 } // namespace UserAuth
73 } // namespace UserIam
74 } // namespace OHOS