Hi Sergey,

Thanks for your response.

As you said domain refers realm.

It would be fruitful if you provide the sample code for retrieving username
, password and the domain or the reference link.

Regards
SaravananRamamoorthy


Sergey Beryozkin-2 wrote:
> 
> Hi
> 
> There's a JAXRS SecurityContext available but it won't give you the
> password.
> You can pass (CXF JAXRS specific) MessageContext and get CXF
> AuthorizationPolicy out of it and it will give you the name and
> password.
> 
> When you say 'domain', what exactly do you mean ? Are you referring to
> the 'realm' ? You can get it from JAXRS
> @HeaderParam("WWW-Authenticate"), passed as List<String>...Or are you
> referring to domain a given authenticated Principal belongs to, as
> configured by the sysadmin ?  
> 
> Sergey  
>  
> 
> -----Original Message-----
> From: SaravananRamamoorthy [mailto:[email protected]] 
> Sent: 02 February 2010 07:25
> To: [email protected]
> Subject: Http basic authentication in JAX RS
> 
> 
> Hi All,
> 
> I am creating REST application using JAX RS.
> 
> I am using SOAPUI to test the application.
> 
> My Rest needs to receive the Http Basic Authentication from the  SOAPUI.
> 
> I just want to receive the authentication details like username,password
> and
> domain in JAX RS method.
> 
> Can anyone give the idea how to get the authentication details in the
> parameter of the method.
> 
> Thanks in advance.
> 
> Regards
> SaravananRamamoorthy
> 
> 
> 
> 
> 
> 
> 
> 
> 
> 
> 
> -- 
> View this message in context:
> http://old.nabble.com/Http-basic-authentication-in-JAX-RS-tp27416364p274
> 16364.html
> Sent from the cxf-user mailing list archive at Nabble.com.
> 
> 
> 

-- 
View this message in context: 
http://old.nabble.com/Http-basic-authentication-in-JAX-RS-tp27416364p27417670.html
Sent from the cxf-user mailing list archive at Nabble.com.

Reply via email to