HID APPROVE SDK 6.1
HID Approve SDK for iOS/macOS
Loading...
Searching...
No Matches
HIDTransaction.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 "HIDKey.h"
27#import "HIDServerAction.h"
33
37typedef NS_ENUM(NSInteger, HIDCancelationReasonCode) {
38 USER_CANCEL,
39 NOTIFY_SUSPICIOUS
40};
41
42
46@protocol HIDTransaction <HIDServerAction>
47
59
64- (NSString*)toString;
65
103- (BOOL)setStatus:(NSString*)status withSigningPassword:(NSString*)signPassword withSessionPassword:(NSString*)sessionPassword withParams:(NSArray*)parameters error:(NSError**)error;
104
128- (BOOL)cancel:(NSString*) message withCancelationReason:(HIDCancelationReasonCode)reason withSessionPassword:(NSString*)sessionPassword error:(NSError**)error;
129
135
148- (NSDate*)getDate:(NSError**)error;
160- (id<HIDKey>)getSigningKey:(NSError**)error;
161
173- (NSString*)getAction:(NSError**)error;
174
187- (NSDate*)getExpiryDate:(NSError**)error;
188
193- (NSString*)getRequestId:(NSError**)error;
194
199- (NSString*)getIdToken:(NSError**)error;
200
201@end
202
Key instance.
ServerAction object.
typedef NS_ENUM(NSInteger, HIDCancelationReasonCode)
Transaction cancelation reason types.
Definition HIDTransaction.h:37
NSString * toString()
Returns the transaction text to be displayed to the user.
BOOL isCancelable()
Checks if the server supports canceling the transaction.
NSArray * getAllowedStatuses()
Returns a list of status (for instance "accept", "deny", "report") that can be set for that transacti...