HID APPROVE SDK
5.1
HID APPROVE SDK for iOS
|
Encapsulates a transaction and exposes an API to apply an action status. More...
#import <HIDTransaction.h>
Instance Methods | |
(NSArray *) | - getAllowedStatuses |
Returns a list of status names(for instance approve, deny, report) that can be set for that transaction. More... | |
(NSDate *) | - getDate: |
Gets status change date for the transaction. More... | |
(id< HIDKey >) | - getSigningKey: |
Gets the Signing Key object associated with that transaction. More... | |
(NSString *) | - getStatus: |
Returns the status of the transaction. More... | |
(BOOL) | - setStatus:withParams:error: |
Deprecated. Communicates the status of this transaction using provided key identifier. More... | |
(BOOL) | - setStatus:withSigningPassword:withSessionPassword:withParams:error: |
Communicates the status of this transaction. More... | |
(NSString *) | - toString |
Returns the transaction text to be displayed to the user. More... | |
Encapsulates a transaction and exposes an API to apply an action status.
- (NSArray*) getAllowedStatuses |
Returns a list of status names(for instance approve, deny, report) that can be set for that transaction.
The values are retrieved from the transaction response message sent back by the server. The returned names can be used by the calling application to look up the corresponding value in a name/value pair resource file for customization/localization of displayed text to user.
- (NSDate*) getDate: | (NSError **) | error |
Gets status change date for the transaction.
error | error details. It may be nil. |
Possible error codes are:
- (id<HIDKey>) getSigningKey: | (NSError **) | error |
Gets the Signing Key object associated with that transaction.
error | error details. It may be nil. |
Possible error codes are:
- (NSString*) getStatus: | (NSError **) | error |
Returns the status of the transaction.
error | error details. It may be nil. |
Possible error codes are:
- (BOOL) setStatus: | (NSString *) | status | |
withParams: | (NSArray *) | parameters | |
error: | (NSError **) | error | |
Deprecated. Communicates the status of this transaction using provided key identifier.
status | status to apply to transaction with signature. |
The status must be one of the statuses returned by the getAllowedStatuses method.
parameters | NSArray of HIDParameter objects used to pass in extra parameter, for instance if the signature key is protected by a second factor password. |
Supported parameters:
error | error details. It may be nil. |
Possible error codes are:
NSInvalidArgumentException | if invalid parameter is given |
- (BOOL) setStatus: | (NSString *) | status | |
withSigningPassword: | (NSString *) | signPassword | |
withSessionPassword: | (NSString *) | sessionPassword | |
withParams: | (NSArray *) | parameters | |
error: | (NSError **) | error | |
Communicates the status of this transaction.
status | status to apply to transaction with signature. |
The status must be one of the statuses returned by the getAllowedStatuses method.
parameters | NSArray of HIDParameter objects used to pass in extra parameter, for instance if the signature key is protected by a second factor password. |
signPassword | signature key protection password (can be nil if not required by the policy) |
sessionPassword | transaction protection key password (can be nil if not required by the policy) |
error | error details. It may be nil. |
Possible error codes are:
NSInvalidArgumentException | if invalid parameter is given |
- (NSString*) toString |
Returns the transaction text to be displayed to the user.