Re: [Quickfix-developers] username / password in logon msg?
Brought to you by:
orenmnero
|
From: Scott H. <sco...@fo...> - 2005-10-04 22:08:22
|
Alvin:
You can stuff the special fields into the outgoing Logon message by
implementing the toAdmin callback. In Java I do something like this for
counterparties that use this type of authentication:
if (message instanceof quickfix.fix43.Logon) {
quickfix.fix43.Logon logon = (quickfix.fix43.Logon) message;
try {
String username = sessionSettings.getString(sessionId, "Username");
logon.set(new quickfix.field.Username(username));
String password = sessionSettings.getString(sessionId, "Password");
logon.set(new quickfix.field.Password(password));
}
catch (Exception xx) {
throw new RuntimeException("Username and Password must be specified in QuickFIX configuration");
}
}
On Tue, 4 Oct 2005, Alvin Wang wrote:
> Hi,
>
> How to include username (553) and password (554) in Logon message? Is
> there a way to do it in the configuration? That should be most intuitive
>
> Thanks
> Alvin
|