public class DeviceFactory extends Object
Constructor and Description |
---|
DeviceFactory() |
Modifier and Type | Method and Description |
---|---|
static Device |
getDevice(android.content.Context context,
ConnectionConfiguration config)
Deprecated.
|
static Device |
getDevice(android.content.Context context,
ConnectionConfiguration config,
char[] sessionPassword)
Create device instance
|
static Device |
getDevice(android.content.Context context,
ConnectionConfiguration config,
char[] sessionPassword,
String deviceSerialNumber)
Create device instance
|
static void |
reset(android.content.Context ctx)
Deletes all containers and keys contained in the device.
|
@Deprecated public static Device getDevice(android.content.Context context, ConnectionConfiguration config) throws UnsupportedDeviceException, LostCredentialsException, InternalException
context
- Android application environment dataconfig
- ConnectionConfiguration structureUnsupportedDeviceException
- if device configuration is not supported.LostCredentialsException
- if provisioning key data has been corrupted or lost.InternalException
- if an unexpected error occurs.public static Device getDevice(android.content.Context context, ConnectionConfiguration config, char[] sessionPassword) throws UnsupportedDeviceException, LostCredentialsException, InternalException, SerialNumberRequiredException
context
- Android application environment dataconfig
- ConnectionConfiguration structuresessionPassword
- transaction protection key password (can be null if not required by the policy)UnsupportedDeviceException
- if device configuration is not supported.LostCredentialsException
- if provisioning key data has been corrupted or lost.InternalException
- if an unexpected error occurs.SerialNumberRequiredException
- if the device serial number is required to upgrade from HID Approve SDK < 5.1public static Device getDevice(android.content.Context context, ConnectionConfiguration config, char[] sessionPassword, String deviceSerialNumber) throws UnsupportedDeviceException, LostCredentialsException, InternalException, SerialNumberRequiredException
context
- Android application environment dataconfig
- ConnectionConfiguration structuresessionPassword
- transaction protection key password (can be null if not required by the policy)deviceSerialNumber
- physical device serial number, which may be required for upgrades from HID Approve SDK < 5.1UnsupportedDeviceException
- if device configuration is not supported.LostCredentialsException
- if provisioning key data has been corrupted or lost.InternalException
- if an unexpected error occurs.SerialNumberRequiredException
- if the device serial number is required to upgrade from HID Approve SDK < 5.1public static void reset(android.content.Context ctx) throws InternalException
ctx
- Android application environment dataInternalException
- if an unexpected error occurred.Copyright © 2005-2020 HID Global Corporation/ASSA ABLOY AB.