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

Main device instance. More...

#import <HIDDevice.h>

Instance Methods

(id< HIDContainer >) - createContainer:withListener:error:
 Deprecated. Creates the container. More...
 
(id< HIDContainer >) - createContainer:withSessionPassword:withListener:error:
 Creates the container. More...
 
(BOOL) - deleteContainer:withSessionPassword:withParams:error:
 Deletes a container identified by its ID. The method notifies the server the container is deleted, thus requires the device to be online. More...
 
(NSArray *) - findContainers:error:
 Retrieves a container based on input parameter filter. More...
 
(id< HIDProtectionPolicy >) - getDefaultInitializationPolicy:
 Deprecated. Retrieves the initialization password policy for the device. More...
 
(NSString *) - getDeviceInfo:error:
 Retrieves device information. More...
 
(NSString *) - getVersion:
 Returns the version of the transaction processor client API. More...
 
(BOOL) - reset:error:
 Deprecated. Deletes containers and keys contained in the device. More...
 
(id< HIDTransaction >) - retrieveTransaction:withPassword:withParams:error:
 Deprecated. Retrieves a transaction associated with that transaction ID. More...
 
(id< HIDTransactionInfo >) - retrieveTransactionInfo:error:
 Retrieves a transaction info associated to that transaction ID. More...
 
(NSArray *) - searchTransactionHistory:withFilter:error:
 Searches for transactions in the transaction history. More...
 
(BOOL) - setConnectionConfiguration:error:
 Sets connection configuration. More...
 
(BOOL) - updateDeviceInfo:withValue:withPassword:withParams:error:
 Updates device information. More...
 

Detailed Description

Main device instance.

Method Documentation

- (id<HIDContainer>) createContainer: (HIDContainerInitialization *)  config
withListener: (NSObject< HIDProgressListener > *)  listener
error: (NSError **)  error 

Deprecated. Creates the container.

Parameters
configinitialization configuration see HIDContainerInitialization for details
listenerA HIDProgressListener implementation to which to report status information or receive password request events.
errorerror details. It may be nil.

Possible error codes are:

Returns
the container or nil if an error occurs.
Exceptions
NSInvalidArgumentExceptionif invalid parameter is given
Deprecated:
Deprecated in SDK 5.1. Integrations should replace calls with the createContainer:withSessionPassword:withListener:error: method.
- (id<HIDContainer>) createContainer: (HIDContainerInitialization *)  config
withSessionPassword: (NSString *)  sessionPassword
withListener: (NSObject< HIDProgressListener > *)  listener
error: (NSError **)  error 

Creates the container.

Parameters
configinitialization configuration see HIDContainerInitialization for details
sessionPasswordtransaction protection key password (can be nil if not required by the policy)
listenerA HIDProgressListener implementation to which to report status information or receive password request events.
errorerror details. It may be nil.

Possible error codes are:

Returns
the container or nil if an error occurs.
Exceptions
NSInvalidArgumentExceptionif 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
containerIdid of the container.
sessionPasswordtransaction protection key password (can be nil if not required by the policy).
parameterscan be empty (reserved for future use).
errorerror details. It may be nil.

Possible error codes are:

Returns
YES if the delete was successfully performed.
Exceptions
NSInvalidArgumentExceptionif invalid parameter is given
- (NSArray*) findContainers: (NSArray *)  filter
error: (NSError **)  error 

Retrieves a container based on input parameter filter.

Parameters
filter

Filter can indicate:

Parameters
errorerror details. It may be nil.

Possible error codes are:

Returns
list of containers or nil if not found.
Exceptions
NSInvalidArgumentExceptionif invalid parameter is given
- (id<HIDProtectionPolicy>) getDefaultInitializationPolicy: (NSError **)  error

Deprecated. Retrieves the initialization password policy for the device.

Parameters
errorerror 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
propertyIddeviceInfo property to retrieve.

Supported property names:

Parameters
errorerror details. It may be nil.

Possible error codes are:

Returns
the device property value, nil if an error occurs.
Exceptions
NSInvalidArgumentExceptionif 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
parameterscan be empty (reserved for future use).
errorerror 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
transactionIdtransaction ID message received in push notification.
sessionPasswordtransaction protection key password (can be nil if not required by the policy)
parametersNSArray of HIDParameter objects required to retrieve the transaction (such as password if needed).

Supported parameters:

Parameters
errorerror 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
NSInvalidArgumentExceptionif 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
transactionIdtransaction ID message received in push notification.
errorerror details. It may be nil.

Possible error codes are:

Returns
a HIDTransactionInfo instance containing transaction details, nil if an error occurs.
Exceptions
NSInvalidArgumentExceptionif invalid parameter is given
- (NSArray*) searchTransactionHistory: (NSString *)  sessionPassword
withFilter: (NSArray *)  filter
error: (NSError **)  error 

Searches for transactions in the transaction history.

Parameters
sessionPasswordIf a password protection policy is set on the transaction protection key the password protecting the key must be passed.
filterTransactionFilter.
errorerror details. It may be nil.

Possible error codes are:

Returns
The list of transactions or nil if not found.
Exceptions
NSInvalidArgumentExceptionif invalid parameter is given
NSInternalInconsistencyExceptionif not implemented
- (BOOL) setConnectionConfiguration: (HIDConnectionConfiguration *)  config
error: (NSError **)  error 

Sets connection configuration.

Parameters
configconfiguration, see HIDConnectionConfiguration for details.
errorerror details. It may be nil.

Possible error codes are:

Returns
false if error occurs
Exceptions
NSInvalidArgumentExceptionif 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
propertyIddeviceInfo 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
sessionPasswordtransaction protection key password (can be nil if not required by the policy)
propertyValuethe new value to replace.
parametersempty (reserved for future use)

Supported parameters:

Parameters
errorerror details. It may be nil.

Possible error codes are:

Returns
YES if property value was successfully updated.
Exceptions
NSInvalidArgumentExceptionif invalid parameter is given

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