HID APPROVE SDK  5.14
HID Approve SDK for Windows .NET
HIDIA.Transaction.IDevice Interface Reference

Enables management of the transactions. More...

Public Member Functions

Task< IContainerCreateContainer (ContainerInitialization config, char[] sessionPassword, IHIDProgress< IProgressEvent > progressListener)
 Triggers the container activation process to create a new container. More...
 
Task DeleteContainer (int containerId, char[] sessionPassword, String reason="user")
 Deletes the container with the specified identifier. More...
 
Task< IList< IContainer > > FindContainers (IList< Parameter > filter)
 Finds containers matching the specified filter. More...
 
Task< string > GetDeviceInfo (string name)
 Gets the device information. More...
 
Task< IServerActionInfoRetrieveActionInfo (string actionId)
 Retrieves and decodes an encrypted "server action" message received from the server. More...
 

Properties

ConnectionConfiguration ConnectionConfiguration [get, set]
 ConnectionConfiguration currently used to connect to servers. More...
 
string Version [get]
 Version of the SDK. More...
 

Detailed Description

Enables management of the transactions.

Member Function Documentation

◆ CreateContainer()

Task<IContainer> HIDIA.Transaction.IDevice.CreateContainer ( ContainerInitialization  config,
char []  sessionPassword,
IHIDProgress< IProgressEvent progressListener 
)

Triggers the container activation process to create a new container.

Parameters
configThe initialization configuration see ContainerInitialization for details.
sessionPasswordTransaction protection key password (can be null if not required by the policy).
progressListenerInstance of IHIDProgress<T> to which report progress or receive password request events.
Returns
The newly created container instance.
Exceptions
AuthenticationExceptionif the given session password is incorrect or locked.
InternalExceptionif an unexpected error occurred.
InvalidPasswordExceptionif the given password does not match the required policy constraints.
InvalidParameterExceptionif the given parameters are invalid or required parameters are missing.
PasswordCancelledExceptionif the password prompt dialog has been cancelled by the user.
PasswordExpiredExceptionif an expired password is given (changePassword required)
RemoteExceptionif server responds with any other error.
ServerAuthenticationExceptionif the server raises an error.

◆ DeleteContainer()

Task HIDIA.Transaction.IDevice.DeleteContainer ( int  containerId,
char []  sessionPassword,
String  reason = "user" 
)

Deletes the container with the specified identifier.

Parameters
containerIdThe identifier of the container.
sessionPasswordTransaction protection key password (can be null if not required by the policy).
reasonOptional parameter to specify the container suppression reason.
Exceptions
AuthenticationExceptionif the given session password is incorrect or locked.
InternalExceptionif an unexpected error occurred.
InvalidPasswordExceptionif the given password does not match the required policy constraints.
InvalidParameterExceptionif the given parameters are invalid or required parameters are missing.
PasswordExpiredExceptionif an expired password is given (changePassword required)

◆ FindContainers()

Task<IList<IContainer> > HIDIA.Transaction.IDevice.FindContainers ( IList< Parameter filter)

Finds containers matching the specified filter.

Parameters
filterArray of parameters providing search criteria. It can be:
Returns
The list of containers matching the filter.
Exceptions
InternalExceptionif an unexpected error occurred.
InvalidParameterExceptionif the given parameters are invalid or required parameters are missing.

◆ GetDeviceInfo()

Task<string> HIDIA.Transaction.IDevice.GetDeviceInfo ( string  name)

Gets the device information.

Parameters
nameThe property identifier.
Returns
The info value.

Allowed property ids are defined in Constants:

Note that Constants.DEVICE_INFO_PUSHID cannot be retrieved because it is not stored: only the application can have an up-to-date value.

Exceptions
InternalExceptionif an unexpected error occurred.
InvalidParameterExceptionif the given parameters are invalid or required parameters are missing.

◆ RetrieveActionInfo()

Task<IServerActionInfo> HIDIA.Transaction.IDevice.RetrieveActionInfo ( string  actionId)

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

Parameters
actionIdThe message received in push notification..
Returns
A IServerActionInfo instance.
Exceptions
InternalExceptionif an unexpected error occurred.
InvalidParameterExceptionif the given parameters are invalid or required parameters are missing.
TransactionContainerInvalidExceptionif the action id refers to a container that does not exist.

Property Documentation

◆ ConnectionConfiguration

ConnectionConfiguration HIDIA.Transaction.IDevice.ConnectionConfiguration
getset

ConnectionConfiguration currently used to connect to servers.

◆ Version

string HIDIA.Transaction.IDevice.Version
get

Version of the SDK.