you can define a BasicPolicy in your services.xml an example is: <wsp:Policy xmlns:wsp="http://schemas.xmlsoap.org/ws/2004/09/policy"> <sp:SymmetricBinding xmlns:sp="http://schemas.xmlsoap.org/ws/2005/07/securitypolicy"> <sp:AlgorithmSuite> <wsp:Policy> <sp:Basic128Rsa15/> </wsp:Policy> </sp:AlgorithmSuite> </wsp:Policy> </sp:SymmetricBinding>
Is this what you're looking for? Martin- ----- Original Message ----- From: "jason zhang" <[EMAIL PROTECTED]> To: <[email protected]> Sent: Saturday, March 29, 2008 6:07 AM Subject: Using rampart policy for basic authentication > Hi, All > Is it possible to implement the rampart sample/basic/sample02 with > policy? What I want to do just basic username/password authentication > with policy. All the examples in policy directory involve encryption or > signature. > > If it is possible, how can I find out in my business method who the > authenticated user is? For example, the Servlet API has a method > HttpServletRequest.getRemoteUser(). Is such a similar API in rampart? > > Thanks > > -jason > > > --------------------------------------------------------------------- > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > > --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
