users@jax-rpc.java.net

Re: Security

From: Arun Gupta <arun.gupta_at_sun.com>
Date: Thu, 29 Aug 2002 20:21:47 -0700

Hi Renato,

To realize basic authentication for JAX-RPC based application under Tomcat, do
the following:

1). Change your client code to add the following properties to your stub
    - yourStub._setProperty(Stub.USERNAME_PROPERTY, your_username);
    - yourStub._setProperty(Stub.PASSWORD_PROPERTY, your_password);
3). Edit conf/tomcat-users.xml to create an entry:
    <user name="your_username" password="your_password" roles="your_role"/>

Now all invocations from your stub are dispatched correctly on the server side
if the USERNAME_PROPERTY and PASSWORD_PROPERTY specified in your stub matches
the properties specified in conf/tomcat-users.xml.

Thanks for your interest in JAX-RPC.


Regards,
-Arun

> Delivered-To: jaxrpc-interest_at_java.sun.com
> Content-Transfer-Encoding: 7bit
> X-Priority: 3
> X-MSMail-Priority: Normal
> X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2600.0000
> Date: Fri, 30 Aug 2002 00:41:01 +0200
> From: Renato Eschini <renato.eschini_at_TIN.IT>
> Subject: Re: Security
> To: JAXRPC-INTEREST_at_JAVA.SUN.COM
>
> Hi Aron,
> thanks for your availability, the issue about security is ok,now the problem
> is that my client application must be authenticated and I'd like to realize
> a simple authentication under tomcat in a simple way beacuse I have the
> expiration of delivery near and me and my project manager are in confusion
> about it.
> Thanks again..
> --
>
> Ciao
> Renato
>
> Synapsis S.r.l.
> in Computer Science
>
> P.zza Dante, 19/20
> 57121 Livorno Italy
> tel: 0586 426790
> fax: 0586 443954
> www.websynapsis.com
>
> You can find me at
> e-mail:r.eschini_at_websynapsis.com
> msn account:r_eschini_at_hotmail.com
> web:www.cli.di.unipi.it/~eschini
> ----------------------

=============================================
There is only one me, I must live myself!
There is only one today, I must live itself!
=============================================
http://members.tripod.com/~apgupta/index.html
=============================================