All the Handler classes are encapsulated into the OnixS::Eurex::Trading namespace. Header files are collected in the master OnixS/Eurex/Trading.h header file.
The typical way of using the Handler is as follows:
The Handler supports plain test password session logon. To use this feature, the following steps should be performed:
The Handler supports password encrypted session logon. To use this feature, the following steps should be performed:
You will find the RSA public keys for Production and Simulation in the samples/Keys directory.
An encrypted password embeds the timestamp of the moment it was encrypted, and the exchange accepts it only within a grace period. The Handler therefore encrypts Logon::password anew before every session logon: the first one, each automatic reconnect, and a failover to the secondary gateway. The key file is read each time, so it has to stay readable while the Handler is connected. If it cannot be read or used at a reconnect, the Handler reports the error through ErrorListener and stops reconnecting.
Logon::encryptedPassword is deprecated. The Handler sends its value unchanged on every session logon, so a reconnect or a failover after the grace period is rejected with the Password timestamp not in grace period session reject reason and the gateway closes the connection. Every remaining connection retry is rejected the same way, so the session is not restored. Assign Logon::password and Logon::publicKeyPath instead; when both Logon::publicKeyPath and Logon::encryptedPassword are set, the Handler uses the key and logs a warning.
The UserLoginRequestEncrypted message is sent by the application, so the application encrypts its password with Handler::encryptPassword. Build the message right before sending it, and never resend one built for an earlier connection: its timestamp is subject to the same grace period.
Please also see section 5.3.3 Password Encryption of Enhanced Trading Interface (ETI) Manual to get more information about password encryption.