Martin, WSS4J does not support to define and hand over parameters to the PasswordCallback. This is because we cannot anticipate the type of parameters, length, etc of any possible PasswordCallback implementation and the parameters these implementations would probably use.
IMHO you may define your own config/property file for your PasswordCallback and load it when. You may have a look into the Merlin crypto implementation etc. where are examples how to handle/load property files. Regards, Werner > -----Urspr�ngliche Nachricht----- > Von: Martin Stemplinger [mailto:[EMAIL PROTECTED] > Gesendet: Dienstag, 1. Februar 2005 19:32 > An: [EMAIL PROTECTED] > Cc: [email protected] > Betreff: Re: How to handle parameters for Password callback class? > > > Ilias Bartolini schrieb am 01/31/2005 10:39 PM: > > -----BEGIN PGP SIGNED MESSAGE----- > > Hash: SHA1 > > > > On Monday 31 January 2005 22:32, Martin Stemplinger wrote: > > > >>How can I pass a parameter to the callback class? I'd appreciate any > >>hints how other handle this or what's the recommended way > of doing so. > > > > > > You can use PasswordCallback to access any external > resource cointaining > > passwords. > > > > I know that I can access whatever resource. My problem is > this: Imagine > I want to access a database that stores the passwords. So I > need to have > a JDBC connection in my class which I don't want to hard-code. How > should I pass the information tp this class? I'd prefer to > store it as a > parameter in the wsdd-file but this doesn't seem to be supported by > WSDoAllSender. So what other options can you recommend? > > Cheers > Martin >
