HID APPROVE SDK  5.7.1
HID APPROVE SDK for iOS
 All Classes Files Functions Variables Enumerations Enumerator Properties Pages
HIDTransaction.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 "HIDKey.h"
25 #import "HIDServerAction.h"
36 
47 - (NSArray*)getAllowedStatuses;
48 
53 - (NSString*)toString;
54 
83 - (BOOL)setStatus:(NSString*)status withSigningPassword:(NSString*)signPassword withSessionPassword:(NSString*)sessionPassword withParams:(NSArray*)parameters error:(NSError**)error;
96 - (NSString*)getStatus:(NSError**)error;
109 - (NSDate*)getDate:(NSError**)error;
121 - (id<HIDKey>)getSigningKey:(NSError**)error;
122 
134 - (NSString*)getAction:(NSError**)error;
135 
148 - (NSDate*)getExpiryDate:(NSError**)error;
149 
150 @end
151 
Key instance.
Encapsulates an action extracted from an encrypted server message.
Definition: HIDServerAction.h:35
NSString * toString()
Returns the transaction text to be displayed to the user.
ServerAction object.
Encapsulates a transaction and exposes an API to apply an action status.
Definition: HIDTransaction.h:35
NSArray * getAllowedStatuses()
Returns a list of status (for instance "accept", "deny", "report") that can be set for that transacti...
Key instance.
Definition: HIDKey.h:36