Re: [Quickfix-developers] username / password in logon msg?
Brought to you by:
orenmnero
|
From: Alvin W. <AW...@FF...> - 2005-10-27 14:50:48
|
Hi Scott,
Just wonder how you put username/password into sessionId before the toAdmin callback?
Thanks
Alvin
String username = sessionSettings.getString(sessionId, "Username");
Scott Harrington <sco...@fo...>
Sent by: qui...@li...
10/04/2005 06:08 PM
To: qui...@li...
cc:
bcc:
Subject: Re: [Quickfix-developers] username / password in logon msg?
QuickFIX Documentation: http://www.quickfixengine.org/quickfix/doc/html/index.html
QuickFIX Support: http://www.quickfixengine.org/services.html
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
-------------------------------------------------------
This SF.Net email is sponsored by:
Power Architecture Resource Center: Free content, downloads, discussions,
and more. http://solutions.newsforge.com/ibmarch.tmpl
_______________________________________________
Quickfix-developers mailing list
Qui...@li...
https://lists.sourceforge.net/lists/listinfo/quickfix-developers
**********************************************************************
This e-mail message is intended solely for the use of the addressee.
The message may contain information that is privileged and confidential.
Disclosure to anyone other than the intended recipient is
prohibited. If you are not the intended recipient, please do not
disseminate, distribute or copy this communication, by e-mail or
otherwise. Instead, please notify us immediately by return e-mail
(including the original message with your reply) and then delete
and discard all copies of the message. We have taken precautions to
minimize the risk of transmitting software viruses but nevertheless
advise you to carry out your own virus checks on any attachment to
this message. We accept no liability for any loss or damage caused
by software viruses.
**********************************************************************
|