Hello,

While I'm a fan of Spring, I need to write an example that does not use 
Spring. So I've got this far:

protected WSS4JOutInterceptor createWss4jInConfiguration(String user, 
String password)
{
  Map<String,Object> props = new HashMap<String,Object>();
  props.put("action", "UsernameToken Timestamp");
  props.put("passwordType", "PasswordDigest");
  props.put("user", user);
  props.put("passwordCallback", new MyPasswordCallbackHandler(password));
  return new WSS4JOutInterceptor(props);
}

List interceptors = new ArrayList();
interceptors.add(new SAAJOutInterceptor());
interceptors.add(createWss4jInConfiguration("jbaker", "moo"));

How do I add the interceptors to the stub generated by CXF? ..e. I have:

      Query q = new Query(url);
      qPort = q.getQueryHttpport();

And I guess the interceptors need to be attached, somehow.

Thanks,


John Baker
-- 
Web SSO 
IT Infrastructure 
Deutsche Bank London

URL:  http://websso.cto.gt.intranet.db.com




Daniel Kulp <[EMAIL PROTECTED]> 
03/03/2008 21:16
Please respond to
[email protected]


To
[email protected]
cc
John-M Baker/ext/[EMAIL PROTECTED]
Subject
Re: Rampart and CXF







By "rampart security", I assume you mean WS-Security?

If so, there is a good blog entry at:
http://domagojtechtips.blogspot.com/2007/08/cxf-spring-and-ws-security-putting-it.html

and another at:
http://www.lumidant.com/blog/apache-cxf-tutorial-ws-security-with-spring/

Dan


On Monday 03 March 2008, John-M Baker wrote:
> Hi,
>
> Does CXF easily support Rampart security? I.e. is there some sample
> code showing me how to set the authentication credentials?
>
> John Baker



-- 
J. Daniel Kulp
Principal Engineer, IONA
[EMAIL PROTECTED]
http://www.dankulp.com/blog



---

This e-mail may contain confidential and/or privileged information. If you are 
not the intended recipient (or have received this e-mail in error) please 
notify the sender immediately and delete this e-mail. Any unauthorized copying, 
disclosure or distribution of the material in this e-mail is strictly forbidden.

Please refer to http://www.db.com/en/content/eu_disclosures.htm for additional 
EU corporate and regulatory disclosures.

Reply via email to