HID APPROVE SDK  6.0
HID Approve SDK for iOS/macOS
 All Classes Files Functions Variables Enumerations Enumerator Properties Pages
HIDProgressListener.h
Go to the documentation of this file.
1 /* ---------------------------------------------------------------------------
2  (c) 2015-2025, HID Global Corporation, part of ASSA ABLOY.
3  All rights reserved.
4 
5  Redistribution and use in source and binary forms, with or without modification,
6  are permitted provided that the following conditions are met:
7  - Redistributions of source code must retain the above copyright notice,
8  this list of conditions and the following disclaimer.
9  - Redistributions in binary form must reproduce the above copyright notice,
10  this list of conditions and the following disclaimer in the documentation
11  and/or other materials provided with the distribution.
12 
13  THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
14  AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO,
15  THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
16  ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE
17  FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES
18  (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES;
19  LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND
20  ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
21  (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF
22  THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
23 --------------------------------------------------------------------------- */
24 
25 #import <Foundation/Foundation.h>
26 #import "HIDProtectionPolicy.h"
27 
38 enum HIDEventResultCode {Continue = 0, Cancel = 1, Abort = 2};
39 
43 @interface HIDEventResult : NSObject
47 @property enum HIDEventResultCode code;
53 - (instancetype)initWithCode:(enum HIDEventResultCode)code;
54 @end
55 
64 @property(strong) NSString* password;
71 - (instancetype)initWithCode:(enum HIDEventResultCode)code andPassword:(NSString*) pwd;
72 @end
73 
78 @protocol HIDEvent
83 @property(readonly) NSString *ID;
103 @property(readonly) NSArray *parameters;
104 
105 @end
106 
107 
112 @interface HIDProgressEvent:NSObject<HIDEvent>
113 @end
114 
119 @interface HIDPasswordPromptEvent:NSObject<HIDEvent>
120 
124 @property(readonly) id<HIDPasswordPolicy> passwordPolicy;
125 
129 @property(readonly) Boolean passwordInitialization;
130 
134 @property(readonly) NSDate* expiryDate;
135 @end
136 
137 
145 
154 - (HIDEventResult*)onEventReceived:(id<HIDEvent>)event;
155 
156 @end
Base class for a synchronization event sent from the server.
Definition: HIDProgressListener.h:78
This interface provides an integration point for receiving status information sent from the server du...
Definition: HIDProgressListener.h:144
Security policy for the protection of sensitive data.
HIDEventResultCode
Enumeration indicating the outcome of the processing Represents the HIDEventResult result possibiliti...
Definition: HIDProgressListener.h:38
Represents the result of HIDProgressListener client-side event processing.
Definition: HIDProgressListener.h:43
NSArray * parameters
Returns the metadata parameters.
Definition: HIDProgressListener.h:103
A synchronization password request event sent from the server.
Definition: HIDProgressListener.h:119
Represents the requested password information for a HIDPasswordPromptEvent.
Definition: HIDProgressListener.h:60
NSString * ID
Returns the type identifier of this event.
Definition: HIDProgressListener.h:83
A synchronization progress event sent from the server.
Definition: HIDProgressListener.h:112
enum HIDEventResultCode code
Event Result Code.
Definition: HIDProgressListener.h:47