Main device instance.
More...
#import <HIDDevice.h>
Deprecated. Creates the container.
- Parameters
-
config | initialization configuration see HIDContainerInitialization for details |
listener | A HIDProgressListener implementation to which to report status information or receive password request events. |
error | error details. It may be nil. |
Possible error codes are:
- Returns
- the container or nil if an error occurs.
- Exceptions
-
NSInvalidArgumentException | if invalid parameter is given |
- Deprecated:
- Deprecated in SDK 5.1. Integrations should replace calls with the createContainer:withSessionPassword:withListener:error: method.
Creates the container.
- Parameters
-
config | initialization configuration see HIDContainerInitialization for details |
sessionPassword | transaction protection key password (can be nil if not required by the policy) |
listener | A HIDProgressListener implementation to which to report status information or receive password request events. |
error | error details. It may be nil. |
Possible error codes are:
- Returns
- the container or nil if an error occurs.
- Exceptions
-
NSInvalidArgumentException | if invalid parameter is given |
- (BOOL) deleteContainer: |
|
(NSInteger) |
containerId |
withSessionPassword: |
|
(NSString *) |
sessionPassword |
withParams: |
|
(NSArray *) |
parameters |
error: |
|
(NSError **) |
error |
|
|
| |
Deletes a container identified by its ID. The method notifies the server the container is deleted, thus requires the device to be online.
- Parameters
-
containerId | id of the container. |
sessionPassword | transaction protection key password (can be nil if not required by the policy). |
parameters | can be empty (reserved for future use). |
error | error details. It may be nil. |
Possible error codes are:
- Returns
- YES if the delete was successfully performed.
- Exceptions
-
NSInvalidArgumentException | if invalid parameter is given |
- (NSArray*) findContainers: |
|
(NSArray *) |
filter |
error: |
|
(NSError **) |
error |
|
|
| |
Retrieves a container based on input parameter filter.
- Parameters
-
Filter can indicate:
- Parameters
-
error | error details. It may be nil. |
Possible error codes are:
- Returns
- list of containers or nil if not found.
- Exceptions
-
NSInvalidArgumentException | if invalid parameter is given |
Deprecated. Retrieves the initialization password policy for the device.
- Parameters
-
error | error details. It may be nil. |
Possible error codes are:
- Returns
- HIDProtectionPolicy
- Deprecated:
- Deprecated in SDK 5.1. Integrations should use the HIDProgressListener functionality.
- (NSString*) getDeviceInfo: |
|
(NSString *) |
propertyId |
error: |
|
(NSError **) |
error |
|
|
| |
Retrieves device information.
- Parameters
-
propertyId | deviceInfo property to retrieve. |
Supported property names:
- Parameters
-
error | error details. It may be nil. |
Possible error codes are:
- Returns
- the device property value, nil if an error occurs.
- Exceptions
-
NSInvalidArgumentException | if invalid parameter is given |
- (NSString*) getVersion: |
|
(NSError **) |
error |
|
Returns the version of the transaction processor client API.
- Returns
- version of the SDK version number.
- (BOOL) reset: |
|
(NSArray *) |
parameters |
error: |
|
(NSError **) |
error |
|
|
| |
Deprecated. Deletes containers and keys contained in the device.
- Parameters
-
parameters | can be empty (reserved for future use). |
error | error details. It may be nil. |
Possible error codes are:
- Returns
- YES if the reset was successfully performed.
- Deprecated:
- Deprecated in SDK 5.1. Integrations should replace calls with the HIDDeviceFactory.reset: method.
- (id<HIDTransaction>) retrieveTransaction: |
|
(NSString *) |
transactionId |
withPassword: |
|
(NSString *) |
sessionPassword |
withParams: |
|
(NSArray *) |
parameters |
error: |
|
(NSError **) |
error |
|
|
| |
Deprecated. Retrieves a transaction associated with that transaction ID.
- Parameters
-
transactionId | transaction ID message received in push notification. |
sessionPassword | transaction protection key password (can be nil if not required by the policy) |
parameters | NSArray of HIDParameter objects required to retrieve the transaction (such as password if needed). |
Supported parameters:
- Parameters
-
error | error details. It may be nil. |
Possible error codes are:
- Returns
- a HIDTransaction instance containing transaction details, nil if an error occurs.
If a password protection policy is set on the Transaction protection key the password protecting the key must be passed as parameter to enable retrieving the transaction.
- Exceptions
-
NSInvalidArgumentException | if invalid parameter is given |
- Deprecated:
- Deprecated in SDK 5.1. Integrations should replace calls with the HIDTransactionInfo.getTransaction:withParams:error: method.
- (id<HIDTransactionInfo>) retrieveTransactionInfo: |
|
(NSString *) |
transactionId |
error: |
|
(NSError **) |
error |
|
|
| |
Retrieves a transaction info associated to that transaction ID.
- Parameters
-
transactionId | transaction ID message received in push notification. |
error | error details. It may be nil. |
Possible error codes are:
- Returns
- a HIDTransactionInfo instance containing transaction details, nil if an error occurs.
- Exceptions
-
NSInvalidArgumentException | if invalid parameter is given |
- (NSArray*) searchTransactionHistory: |
|
(NSString *) |
sessionPassword |
withFilter: |
|
(NSArray *) |
filter |
error: |
|
(NSError **) |
error |
|
|
| |
Searches for transactions in the transaction history.
- Parameters
-
sessionPassword | If a password protection policy is set on the transaction protection key the password protecting the key must be passed. |
filter | TransactionFilter. |
error | error details. It may be nil. |
Possible error codes are:
- Returns
- The list of transactions or nil if not found.
- Exceptions
-
NSInvalidArgumentException | if invalid parameter is given |
NSInternalInconsistencyException | if not implemented |
Sets connection configuration.
- Parameters
-
Possible error codes are:
- Returns
- false if error occurs
- Exceptions
-
NSInvalidArgumentException | if invalid parameter is given |
- (BOOL) updateDeviceInfo: |
|
(NSString *) |
propertyId |
withValue: |
|
(NSString *) |
propertyValue |
withPassword: |
|
(NSString *) |
sessionPassword |
withParams: |
|
(NSArray *) |
parameters |
error: |
|
(NSError **) |
error |
|
|
| |
Updates device information.
This method is used by the application to notify of a change in one of the externally generated device attributes.
- Parameters
-
propertyId | deviceInfo property to update. |
Supported name attributes:
-
HID_DEVICE_INFO_PUSHID: update of the 'pushId', set up at provisioning and used by the server to notify the correct phone.
- Parameters
-
sessionPassword | transaction protection key password (can be nil if not required by the policy) |
propertyValue | the new value to replace. |
parameters | empty (reserved for future use) |
Supported parameters:
- Parameters
-
error | error details. It may be nil. |
Possible error codes are:
- Returns
- YES if property value was successfully updated.
- Exceptions
-
NSInvalidArgumentException | if invalid parameter is given |
The documentation for this protocol was generated from the following file: