HID APPROVE SDK  5.7.1
HID APPROVE SDK for iOS
 All Classes Files Functions Variables Enumerations Enumerator Properties Pages
HIDProgressListener.h
Go to the documentation of this file.
1 /* ---------------------------------------------------------------------------
2  © 2017-2020 HID Global Corporation/ASSA ABLOY AB. All rights reserved.
3 
4  Redistribution and use in source and binary forms, with or without modification,
5  are permitted provided that the following conditions are met:
6  - Redistributions of source code must retain the above copyright notice,
7  this list of conditions and the following disclaimer.
8  - Redistributions in binary form must reproduce the above copyright notice,
9  this list of conditions and the following disclaimer in the documentation
10  and/or other materials provided with the distribution.
11  THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
12  AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO,
13  THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
14  ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE
15  FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES
16  (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES;
17  LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND
18  ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
19  (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF
20  THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
21  --------------------------------------------------------------------------- */
22 
23 #import <Foundation/Foundation.h>
24 #import "HIDProtectionPolicy.h"
25 
35 enum HIDEventResultCode {Continue = 0, Cancel = 1, Abort = 2};
36 
40 @interface HIDEventResult : NSObject
44 @property enum HIDEventResultCode code;
50 - (instancetype)initWithCode:(enum HIDEventResultCode)code;
51 @end
52 
60 @property(strong) NSString* password;
67 - (instancetype)initWithCode:(enum HIDEventResultCode)code andPassword:(NSString*) pwd;
68 @end
69 
74 @protocol HIDEvent
79 @property(readonly) NSString *ID;
84 @property(readonly) NSArray *parameters;
85 
86 @end
87 
88 
93 @interface HIDProgressEvent:NSObject<HIDEvent>
94 @end
95 
99 @interface HIDPasswordPromptEvent:NSObject<HIDEvent>
100 
104 @property(readonly) id<HIDPasswordPolicy> passwordPolicy;
105 
109 @property(readonly) Boolean passwordInitialization;
110 
114 @property(readonly) NSDate* expiryDate;
115 @end
116 
117 
125 
134 - (HIDEventResult*)onEventReceived:(id<HIDEvent>)event;
135 
136 @end
A synchronization event sent from the server.
Definition: HIDProgressListener.h:74
This interface provides an integration point for receiving status information sent from the server du...
Definition: HIDProgressListener.h:124
Security policy for the protection of sensitive data.
HIDEventResultCode
Enumeration indicating the outcome of the processing.
Definition: HIDProgressListener.h:35
Represents the result of the event processing.
Definition: HIDProgressListener.h:40
NSArray * parameters
Returns the metadata parameters.
Definition: HIDProgressListener.h:84
Password prompt event.
Definition: HIDProgressListener.h:99
Represents the result of the HIDPasswordPromptEvent processing.
Definition: HIDProgressListener.h:56
NSString * ID
Returns the type identifier of this event.
Definition: HIDProgressListener.h:79
A synchronization event sent from the server.
Definition: HIDProgressListener.h:93
enum HIDEventResultCode code
Event Result Code.
Definition: HIDProgressListener.h:44