HID APPROVE SDK  5.10
HID Approve SDK for Android
com.hidglobal.ia.service.manager.DeviceFactory Class Reference

The Transaction namespace provides transaction signing related features. More...

Static Public Member Functions

static Device getDevice (Context context, ConnectionConfiguration config) throws UnsupportedDeviceException, LostCredentialsException, InternalException, InvalidParameterException
 
static Device getDevice (Context context, ConnectionConfiguration config, char[] sessionPassword) throws UnsupportedDeviceException, LostCredentialsException, InternalException, InvalidParameterException
 
static void reset (Context ctx) throws InternalException
 

Detailed Description

The Transaction namespace provides transaction signing related features.

Factory for creating a new device instance.

Member Function Documentation

◆ getDevice() [1/2]

static Device com.hidglobal.ia.service.manager.DeviceFactory.getDevice ( Context  context,
ConnectionConfiguration  config 
) throws UnsupportedDeviceException, LostCredentialsException, InternalException, InvalidParameterException
inlinestatic

Create device instance

Parameters
contextAndroid application environment data
configoptional connection configuration.
Returns
Device instance
Exceptions
InternalExceptionif an unexpected error occurs.
InvalidParameterExceptionif the given parameters are invalid or required parameters are missing.
UnsupportedDeviceExceptionif device configuration is not supported.
LostCredentialsExceptionif provisioning key data has been corrupted or lost.

◆ getDevice() [2/2]

static Device com.hidglobal.ia.service.manager.DeviceFactory.getDevice ( Context  context,
ConnectionConfiguration  config,
char []  sessionPassword 
) throws UnsupportedDeviceException, LostCredentialsException, InternalException, InvalidParameterException
inlinestatic

Deprecated. Create device instance

Parameters
contextAndroid application environment data
configoptional connection configuration.
sessionPasswordtransaction protection key password (can be null if not required by the policy)
Returns
Device instance
Exceptions
InternalExceptionif an unexpected error occurs.
InvalidParameterExceptionif the given parameters are invalid or required parameters are missing.
UnsupportedDeviceExceptionif device configuration is not supported.
LostCredentialsExceptionif provisioning key data has been corrupted or lost.
Deprecated:
Deprecated in SDK 5.5. Integrations should replace calls with the DeviceFactory#getDevice(Context,ConnectionConfiguration) method.

◆ reset()

static void com.hidglobal.ia.service.manager.DeviceFactory.reset ( Context  ctx) throws InternalException
inlinestatic

Deletes all containers and keys contained in the device.

Parameters
ctxAndroid application environment data
Exceptions
InternalExceptionif an unexpected error occurred.