Michal Maczka wrote:

> For the moment I have tested my API with username, user password 
> kept in properties file. I think such approach is not acceptable.
> 
> You can use command line to pass properties to maven: 
> 
> maven  war:deloy -Dmaven.repo.ibiblio.password = ******
> 
> This is already better ... but still not perfect.
> 
> I will try to implement/use(if I find one) simple "Prompter" which will ask
> to type your password (eventually to enter other required parameters which
> are missing)

The best approach to the problem is IMO using an ssh agent program.
Under unix, you can check for SSH_AGENT_PID and SSH_AUTH_SOCK
environment variables to find the information about the program you
should talk to. I don't know if the JCraft ssh stuff can talk to
an agent though.

I also hear that there is an ssh agent (or ssh agent like, because
of the obvious lack of unix sockets) for the M$ Windows, distributed
as a part of the excelent PuTTY package.

This is definetly the most interesting solution as it enables PKI
authentication, and lifts the burden of asking for passwords from the
application)

R.


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to