Re: [Quickfix-developers] Need info on Quick Fix password encryption.
Brought to you by:
orenmnero
From: Draupnir G. - L. <dra...@li...> - 2010-08-03 11:06:53
|
Hi, You have to inherit from Quickfix.Log and in your factory, you return a new instance of your log. Your log class has to implement: QuickFix.Log.Clear QuickFix.Log.onEvent QuickFix.Log.onIncoming QuickFix.Log.onOutgoing And in your onOutgoing method you do something like message.ToString() and take that string and remove the password token. You could also make a loop over each token and add the values to the output if it isn't the password. And then you have to actually do the logging (write to whatever file you want to use). Best regards, Draupnir Guðmundsson Libra On Tue, Aug 3, 2010 at 10:06, Zuber <moh...@in...> wrote: > QuickFIX Documentation: http://www.quickfixengine.org/quickfix/doc/html/index.html > QuickFIX Support: http://www.quickfixengine.org/services.html > > > Thanks Kenny for you reply, but I am not able to have a clear idea of how to > do it, i have made a Logger class which extends quickfix. > > > import quickfix.Log; > import quickfix.SLF4JLogFactory; > import quickfix.SessionID; > import quickfix.SessionSettings; > > public class LogFactory extends SLF4JLogFactory implements > quickfix.LogFactory{ > > public LogFactory(SessionSettings settings) { > super(settings); > // TODO Auto-generated constructor stub > } > > @Override > public Log create() { > // TODO Auto-generated method stub > return null; > } > > @Override > public Log create(SessionID arg0) { > // TODO Auto-generated method stub > return null; > } > > } > > > The logs which in am getting are as followes: > > 11:01:13 [SocketConnectorIoProcessor-0.0]: sessionCreated MINA session > created: /<IP ADDRESS> > 11:01:13 [QFJ Timer]: ? FIX.4.4:38-><EXCHANGE>: Application exception in > toAdmin() > 11:01:13 [QFJ Timer]: send FIX.4.4:38-><EXCHANGE>: > 8=FIX.4.4 9=110 35=A 34=1 49=38 52=20100803-10:01:13.102 56=<EXCHANGE> 98=0 108=30 141=Y 553=<FIX > USER ID> 554=<FIX PASSWORD> 10=098 > 11:01:13 [QFJ Timer]: ? FIX.4.4:38-><EXCHANGE>: Initiated logon request > 11:01:13 [SocketConnectorIoProcessor-0.0]: exceptionCaught socket exception > (/63.247.113.201:443): Initial SSL handshake failed. > 11:01:13 [SocketConnectorIoProcessor-0.0]: ? FIX.4.4:38-><EXCHANGE>: > Disconnecting > > I want to get rid of the PASSWORD(marked). > > Thanks > Zuber > -- > View this message in context: http://old.nabble.com/Need-info-on-Quick-Fix-password-encryption.-tp29324628p29333740.html > Sent from the QuickFIX - Dev mailing list archive at Nabble.com. > > > ------------------------------------------------------------------------------ > The Palm PDK Hot Apps Program offers developers who use the > Plug-In Development Kit to bring their C/C++ apps to Palm for a share > of $1 Million in cash or HP Products. Visit us here for more details: > http://p.sf.net/sfu/dev2dev-palm > _______________________________________________ > Quickfix-developers mailing list > Qui...@li... > https://lists.sourceforge.net/lists/listinfo/quickfix-developers > |