HID APPROVE SDK  5.5
HID APPROVE SDK for iOS
 All Classes Files Functions Variables Enumerations Enumerator Properties Pages
<HIDTransaction> Protocol Reference

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...
 

Detailed Description

Encapsulates a transaction and exposes an API to apply an action status.

Method Documentation

- (NSArray*) getAllowedStatuses

Returns a list of status names(for instance approve, deny, report) that can be set for that transaction.

Returns
the NSString array contains the possible status values to be used with setStatus.
See also
- setStatus:withSigningPassword:withSessionPassword:withParams:error:

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.

Parameters
errorerror details. It may be nil.

Possible error codes are:

Returns
the date, nil if not set yet or an error occurs.
- (id<HIDKey>) getSigningKey: (NSError **)  error

Gets the Signing Key object associated with that transaction.

Parameters
errorerror details. It may be nil.

Possible error codes are:

Returns
the key, nil if an error occurs.
- (NSString*) getStatus: (NSError **)  error

Returns the status of the transaction.

Parameters
errorerror details. It may be nil.

Possible error codes are:

Returns
the status of the transaction, nil if not set yet or an error occurs.
- (BOOL) setStatus: (NSString *)  status
withParams: (NSArray *)  parameters
error: (NSError **)  error 

Deprecated. Communicates the status of this transaction using provided key identifier.

Parameters
statusstatus to apply to transaction with signature.

The status must be one of the statuses returned by the getAllowedStatuses method.

Parameters
parametersNSArray of HIDParameter objects used to pass in extra parameter, for instance if the signature key is protected by a second factor password.

Supported parameters:

Parameters
errorerror details. It may be nil.

Possible error codes are:

Returns
boolean true if successful.
Deprecated:
Deprecated in SDK 5.1. Integrations should replace calls with the setStatus:withSigningPassword:withSessionPassword:withParams:error: method.
- (BOOL) setStatus: (NSString *)  status
withSigningPassword: (NSString *)  signPassword
withSessionPassword: (NSString *)  sessionPassword
withParams: (NSArray *)  parameters
error: (NSError **)  error 

Communicates the status of this transaction.

Parameters
statusstatus to apply to transaction with signature.

The status must be one of the statuses returned by the getAllowedStatuses method.

Parameters
parametersNSArray of HIDParameter objects used to pass in extra parameter, for instance if the signature key is protected by a second factor password.
signPasswordsignature key protection password (can be nil if not required by the policy)
sessionPasswordtransaction protection key password (can be nil if not required by the policy)
errorerror details. It may be nil.

Possible error codes are:

Returns
boolean true if successful.
See also
- findKeys:error: (HIDContainer-p)
- (NSString*) toString

Returns the transaction text to be displayed to the user.

Returns
Transaction text string.

The documentation for this protocol was generated from the following file: