• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

Dynamically add ws-security to a service

 
Greenhorn
Posts: 3
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
hi all,


I have a service where we have implemented ws-security with certificate (issuer name and serial number). Rampart is used for the security configuration and the configurations for the same is in the services.xml like below,



It works great without issues. But some of our customers would like for the ws-security to be turned off when they dont need it. Now, they do not want to be going in and modifying the code to remove the ws-security assertions in the services.xml and moreover it would be inside the WAR file. Is there a way to programatically turn off the ws-security settings and not have the service go through security? Dynamic rampart configuration is an option I am exploring (and having quite some trouble with --> see my thread --> https://coderanch.com/t/564573/Web-Services/java/Issues-dynamically-configuring-rampart-configuration). Apart from the dynamic rampart configuration, is there any other way that I can get this achieved? Suggestions please.

Regards,
Yogi
 
He was giving me directions and I was powerless to resist. I cannot resist this tiny ad:
a bit of art, as a gift, the permaculture playing cards
https://gardener-gift.com
reply
    Bookmark Topic Watch Topic
  • New Topic