public interface Device
Modifier and Type | Method and Description |
---|---|
Container |
createContainer(ContainerInitialization config,
char[] sessionPassword,
EventListener listener)
Creates the container.
|
Container |
createContainer(ContainerInitialization config,
EventListener listener)
Deprecated.
|
void |
deleteContainer(int containerId,
char[] sessionPassword)
Deletes a container identified by its ID.
|
Container[] |
findContainers(Parameter[] filter)
Retrieves a container based on input parameter filter.
|
ProtectionPolicy |
getDefaultInitializationPolicy()
Deprecated.
This method is no longer recommended.
Use
EventListener instead. |
char[] |
getDeviceInfo(String param)
Retrieves device information.
|
String |
getVersion()
Returns the version of the transaction processor client API.
|
boolean |
reset(Parameter[] params)
Deprecated.
This method is no longer acceptable to delete the containers.
Use com.hidglobal.ia.service.manager.DeviceFactory.reset(Context) instead.
|
Transaction |
retrieveTransaction(char[] transactionId,
char[] sessionPassword,
Parameter[] params)
Deprecated.
This method is no longer acceptable to retrieve transaction.
Use
TransactionInfo.getTransaction(char[], Parameter[]) instead. |
TransactionInfo |
retrieveTransactionInfo(char[] transactionId)
Retrieves a transaction info associated to that transaction id.
|
Transaction[] |
searchTransactionHistory(char[] sessionPassword,
TransactionFilter filter)
Searches for transactions in the transaction history.
|
void |
setConnectionConfiguration(ConnectionConfiguration connectionConfiguration)
Sets connection configuration.
|
void |
updateDeviceInfo(String name,
char[] value,
char[] sessionPassword,
Parameter[] params)
Updates device information.
|
@Deprecated Transaction retrieveTransaction(char[] transactionId, char[] sessionPassword, Parameter[] params) throws AuthenticationException, RemoteException, UnsupportedDeviceException, PasswordExpiredException, LostCredentialsException, InternalException, InvalidPasswordException, TransactionContainerInvalidException, TransactionExpiredException
TransactionInfo.getTransaction(char[], Parameter[])
instead.transactionId
- transaction ID message received in push notification.sessionPassword
- transaction protection key password (can be null if not required by the policy).params
- array of Parameter objects required to retrieve the transaction.Transaction
) instance containing transaction details.AuthenticationException
- if password is incorrect.RemoteException
- if server responds with any other error.UnsupportedDeviceException
- if device is not supported by policy.PasswordExpiredException
- if expired password is given (changePassword required).LostCredentialsException
- if provisioning key data has been corrupted or lost.InternalException
- if an unexpected error occurred.InvalidPasswordException
- if password validation fails.TransactionContainerInvalidException
- if the transaction id refers to a container that does not exist.TransactionExpiredException
- if transaction has expired.TransactionInfo retrieveTransactionInfo(char[] transactionId) throws InternalException, TransactionContainerInvalidException
transactionId
- transaction id message received in push notification.TransactionInfo
) instance containing transaction details.InternalException
- if an unexpected error occurred.TransactionContainerInvalidException
- if the transaction id refers to a container that does not exist.void updateDeviceInfo(String name, char[] value, char[] sessionPassword, Parameter[] params) throws UnsupportedDeviceException, RemoteException, AuthenticationException, InvalidPasswordException, InternalException, LostCredentialsException, FingerprintAuthenticationRequiredException, FingerprintNotEnrolledException, PasswordRequiredException
name
- name of property.
Supported name attributes:
value
- value of property.sessionPassword
- transaction protection key password (can be null if not required by the policy).params
- array of Parameter objects.UnsupportedDeviceException
- if device is not supported by policy.RemoteException
- if server responds with any other error.AuthenticationException
- if password is incorrect.InvalidPasswordException
- if password validation fails.InternalException
- if an unexpected error occurred.LostCredentialsException
- if provisioning key data has been corrupted or lost.FingerprintAuthenticationRequiredException
- if fingerprint authentication is required by policy.FingerprintNotEnrolledException
- if fingerprint enrollment is required.PasswordRequiredException
- if required password was not provided and cached password is not available.char[] getDeviceInfo(String param) throws UnsupportedDeviceException, InternalException
param
- deviceInfo property to retrieve.
Supported property names:
DEVICE_INFO_BRAND
DEVICE_INFO_KEYSTORE
DEVICE_INFO_LOCALE
DEVICE_INFO_MANUFACTURER
DEVICE_INFO_MODEL
DEVICE_INFO_NAME
DEVICE_INFO_OS
DEVICE_INFO_OS_VERSION
DEVICE_INFO_OS_NAME
DEVICE_INFO_PRODUCTUnsupportedDeviceException
- if device is not supported by policy.InternalException
- if an unexpected error occurred.String getVersion()
Container[] findContainers(Parameter[] filter) throws InternalException, UnsupportedDeviceException, AuthenticationException, InvalidPasswordException, FingerprintAuthenticationRequiredException, FingerprintNotEnrolledException
filter
- array of Parameter objects required to specify container
Filter can indicate:
CONTAINER_NAME: Friendly Name of the container.
CONTAINER_URL: URL of server associated with the container.
CONTAINER_USERID: User identifier of the container.
CONTAINER_EXPIRY_DATE: Container expiration date.
CONTAINER_CREATION_DATE: Container creation date.InternalException
- if an unexpected error occurred.UnsupportedDeviceException
- if device is not supported by policy.AuthenticationException
- if password is incorrect.InvalidPasswordException
- if password validation fails.FingerprintAuthenticationRequiredException
- if fingerprint authentication is required by policy.FingerprintNotEnrolledException
- if fingerprint enrollment is required.Container createContainer(ContainerInitialization config, char[] sessionPassword, EventListener listener) throws UnsupportedDeviceException, InternalException, AuthenticationException, InvalidPasswordException, RemoteException, UnsafeDeviceException, ServerProtocolException, FingerprintAuthenticationRequiredException, FingerprintNotEnrolledException, GooglePlayServicesObsoleteException, PasswordCancelledException, ServerOperationFailedException
config
- initialization configuration see ContainerInitialization
for detailslistener
- An EventListener implementation to which to report status information or receive password request events.sessionPassword
- transaction protection key password (can be null if not required by the policy).UnsupportedDeviceException
- if device is not supported by policy.InternalException
- if an unexpected error occurred.AuthenticationException
- if password is incorrect.InvalidPasswordException
- if password validation fails.RemoteException
- if server responds with any other error.UnsafeDeviceException
- if the mobile is not protected by a password.ServerProtocolException
- if the server response provoked an unexpected error.FingerprintAuthenticationRequiredException
- if fingerprint authentication is required by policy.FingerprintNotEnrolledException
- if fingerprint enrollment is required.GooglePlayServicesObsoleteException
- if Google Play Services is out of date or not installed.PasswordCancelledException
- if the password prompt dialog has been cancelled by the user.ServerOperationFailedException
- if the server encounters a failure for the operation requested.@Deprecated Container createContainer(ContainerInitialization config, EventListener listener) throws UnsupportedDeviceException, InternalException, AuthenticationException, InvalidPasswordException, RemoteException, UnsafeDeviceException, ServerProtocolException, FingerprintAuthenticationRequiredException, FingerprintNotEnrolledException, GooglePlayServicesObsoleteException, PasswordCancelledException, ServerOperationFailedException
config
- initialization configuration see ContainerInitialization
for detailslistener
- An EventListener implementation to which to report status information or receive password request events.UnsupportedDeviceException
- if device is not supported by policy.InternalException
- if an unexpected error occurred.AuthenticationException
- if password is incorrect.InvalidPasswordException
- if password validation fails.RemoteException
- if server responds with any other error.UnsafeDeviceException
- if the mobile is not protected by a password.ServerProtocolException
- if the server response provoked an unexpected error.FingerprintAuthenticationRequiredException
- if fingerprint authentication is required by policy.FingerprintNotEnrolledException
- if fingerprint enrollment is required.GooglePlayServicesObsoleteException
- if Google Play Services is out of date or not installed.PasswordCancelledException
- if the password prompt dialog has been cancelled by the user.ServerOperationFailedException
- if the server encounters a failure for the operation requested.void deleteContainer(int containerId, char[] sessionPassword) throws InternalException, AuthenticationException, PasswordExpiredException
containerId
- id of container.sessionPassword
- transaction protection key password (can be null if not required by the policy).InternalException
- if an unexpected error occurred.PasswordExpiredException
- if expired password is given (changePassword required).AuthenticationException
- if password is incorrect.@Deprecated boolean reset(Parameter[] params) throws InternalException
params
- array of Parameter objectsInternalException
- if an unexpected error occurred.Transaction[] searchTransactionHistory(char[] sessionPassword, TransactionFilter filter) throws NotImplementedException
sessionPassword
- transaction protection key password (can be null if not required by the policy).filter
- TransactionFilter.NotImplementedException
- if the operation is not implemented and reserved for future use.@Deprecated ProtectionPolicy getDefaultInitializationPolicy() throws InternalException
EventListener
instead.InternalException
- if an unexpected error occurred.void setConnectionConfiguration(ConnectionConfiguration connectionConfiguration)
connectionConfiguration
- configuration, see ConnectionConfiguration
for details.Copyright © 2005-2020 HID Global Corporation/ASSA ABLOY AB.