HID APPROVE SDK  6.0
HID Approve SDK for Android
com.hidglobal.ia.service.transaction.Device Interface Reference

Parent device object used to query device information and discover any active containers. More...

Public Member Functions

Container createContainer (ContainerInitialization config, char[] sessionPassword, EventListener listener) throws UnsupportedDeviceException, InternalException, AuthenticationException, InvalidPasswordException, RemoteException, UnsafeDeviceException, ServerProtocolException, FingerprintAuthenticationRequiredException, FingerprintNotEnrolledException, GooglePlayServicesObsoleteException, PasswordCancelledException, ServerOperationFailedException, InvalidParameterException
 
void deleteContainer (int containerId, char[] sessionPassword) throws InternalException, AuthenticationException, PasswordExpiredException, InvalidParameterException
 
void deleteContainer (int containerId, char[] sessionPassword, String reason) throws InternalException, AuthenticationException, PasswordExpiredException, InvalidParameterException
 
Container [] findContainers (Parameter[] filter) throws InternalException, UnsupportedDeviceException, InvalidParameterException
 
char [] getDeviceInfo (String param) throws UnsupportedDeviceException, InternalException, InvalidParameterException
 
String getVersion ()
 
ServerActionInfo retrieveActionInfo (char[] actionId, char[] userId) throws InternalException, InvalidContainerException, InvalidParameterException, InexplicitContainerException
 
ServerActionInfo retrieveActionInfo (char[] actionId) throws InternalException, InvalidContainerException, InvalidParameterException, InexplicitContainerException
 
void setConnectionConfiguration (ConnectionConfiguration connectionConfiguration) throws InvalidParameterException
 

Detailed Description

Parent device object used to query device information and discover any active containers.

Member Function Documentation

◆ createContainer()

Triggers the container activation process to create a new container.

Parameters
configContainerInitialization structure containing configuration for initialization.
sessionPasswordtransaction protection key password (can be null if not required by the policy).
listenerAn EventListener implementation to which to report status information or receive password request events.
Returns
the new container instance.
Exceptions
UnsupportedDeviceExceptionif device is not supported by policy.
InternalExceptionif an unexpected error occurred.
AuthenticationExceptionif password is incorrect.
InvalidPasswordExceptionif new container/key password is not accepted by the protection policy.
RemoteExceptionif server responds with any other error.
UnsafeDeviceExceptionif the mobile is not protected by a password.
FingerprintAuthenticationRequiredExceptionif fingerprint authentication is required by policy.
FingerprintNotEnrolledExceptionif fingerprint enrollment is required.
GooglePlayServicesObsoleteExceptionif Google Play Services is out of date or not installed.
PasswordCancelledExceptionif the password prompt dialog has been canceled by the user.
ServerOperationFailedExceptionif the server encounters a failure for the operation requested.
InvalidParameterExceptionif an incorrect parameter is detected

◆ deleteContainer() [1/2]

void com.hidglobal.ia.service.transaction.Device.deleteContainer ( int  containerId,
char []  sessionPassword 
) throws InternalException, AuthenticationException, PasswordExpiredException, InvalidParameterException

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 container.
sessionPasswordtransaction protection key password (can be null if not required by the policy).
Exceptions
InternalExceptionif an unexpected error occurred.
PasswordExpiredExceptionif expired password is given (changePassword required).
AuthenticationExceptionif password is incorrect.
InvalidParameterExceptionif an incorrect parameter is detected
Deprecated:
Deprecated in SDK 6.0. Use [}.

◆ deleteContainer() [2/2]

void com.hidglobal.ia.service.transaction.Device.deleteContainer ( int  containerId,
char []  sessionPassword,
String  reason 
) throws InternalException, AuthenticationException, PasswordExpiredException, InvalidParameterException

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 container.
sessionPasswordtransaction protection key password (can be null if not required by the policy).
reasonOptional message defining the reason for deletion for audit (default USER) (expected max 1000 characters)
Exceptions
InternalExceptionif an unexpected error occurred.
PasswordExpiredExceptionif expired password is given (changePassword required).
AuthenticationExceptionif password is incorrect.
InvalidParameterExceptionif the given parameters are invalid or required parameters are missing.

◆ findContainers()

Container [] com.hidglobal.ia.service.transaction.Device.findContainers ( Parameter []  filter) throws InternalException, UnsupportedDeviceException, InvalidParameterException

Retrieves a container based on input parameter filter.

Parameters
filterparam array of Parameter objects required to specify container

Filter parameter can be defined with following id:

Returns
list of containers.
Exceptions
InternalExceptionif an unexpected error occurred.
UnsupportedDeviceExceptionif device is not supported by policy.
InvalidParameterExceptionif the given parameters are invalid or required parameters are missing.

◆ getDeviceInfo()

char [] com.hidglobal.ia.service.transaction.Device.getDeviceInfo ( String  param) throws UnsupportedDeviceException, InternalException, InvalidParameterException

Retrieves device information.

Parameters
paramdeviceInfo property to retrieve.

Supported property parameter names:

Returns
the device property value.
Exceptions
UnsupportedDeviceExceptionif device is not supported by policy.
InternalExceptionif an unexpected error occurred.
InvalidParameterExceptionif the given parameters are invalid or required parameters are missing.

◆ getVersion()

String com.hidglobal.ia.service.transaction.Device.getVersion ( )

Returns the version of the transaction processor client API.

Returns
version of the SDK version number.

◆ retrieveActionInfo() [1/2]

ServerActionInfo com.hidglobal.ia.service.transaction.Device.retrieveActionInfo ( char []  actionId,
char []  userId 
) throws InternalException, InvalidContainerException, InvalidParameterException, InexplicitContainerException

Retrieves and decrypts an encrypted "server action" message received from the server.

Parameters
actionIdaction ID message received in push notification, scan to approve or via Container.retrieveTransactionsIds()
userIduser identifier of the container to be used to retrieve action info from. ( Optional )
Returns
a ServerActionInfo instance containing transaction details.
Exceptions
InternalExceptionif an unexpected error occurred.
InvalidContainerExceptionif the action id refers to a container that does not exist.
InvalidParameterExceptionif the given parameters are invalid or required parameters are missing.
InexplicitContainerExceptionif the action id cannot determine which container to apply. Invoke retrieveActionInfo with 'UserId' parameter.

◆ retrieveActionInfo() [2/2]

ServerActionInfo com.hidglobal.ia.service.transaction.Device.retrieveActionInfo ( char []  actionId) throws InternalException, InvalidContainerException, InvalidParameterException, InexplicitContainerException

Retrieves and decrypts an encrypted "server action" message received from the server.

Parameters
actionIdaction ID message received in push notification, scan to approve or via Container.retrieveTransactionsIds()
Returns
a ServerActionInfo instance containing transaction details.
Exceptions
InternalExceptionif an unexpected error occurred.
InvalidContainerExceptionif the action id refers to a container that does not exist.
InvalidParameterExceptionif the given parameters are invalid or required parameters are missing.
InexplicitContainerExceptionif the action id cannot determine which container to apply. Invoke retrieveActionInfo with 'UserId' parameter.

◆ setConnectionConfiguration()

void com.hidglobal.ia.service.transaction.Device.setConnectionConfiguration ( ConnectionConfiguration  connectionConfiguration) throws InvalidParameterException

Sets connection configuration.

Parameters
connectionConfigurationconfiguration, see ConnectionConfiguration for details.
Exceptions
InvalidParameterExceptionif the given parameters are invalid or required parameters are missing.