This week's book giveaway is in the Agile and other Processes forum.
We're giving away four copies of The Mikado Method and have Ola Ellnestam and Daniel Brolund on-line!
See this thread for details.
The moose likes Web Services and the fly likes Encrypt org.apache.ws.security.crypto.merlin.keystore.password Big Moose Saloon
  Search | Java FAQ | Recent Topics
Register / Login


Win a copy of The Mikado Method this week in the Agile and other Processes forum!
JavaRanch » Java Forums » Java » Web Services
Reply Bookmark "Encrypt org.apache.ws.security.crypto.merlin.keystore.password" Watch "Encrypt org.apache.ws.security.crypto.merlin.keystore.password" New topic
Author

Encrypt org.apache.ws.security.crypto.merlin.keystore.password

Ed Lee
Greenhorn

Joined: May 16, 2007
Posts: 5


Would it be possible to have the property field of org.apache.ws.security.crypto.merlin.keystore.password encrypted similarly to the passwordCallbackClass so the password is not hardcoded and visible in the services.xml?

<ramp:RampartConfig xmlns:ramp="http://ws.apache.org/rampart/policy">
<ramp:user>service</ramp:user>
<ramp:passwordCallbackClass>ServiceCallback</ramp:passwordCallbackClass>
<ramp:policyValidatorCbClass>CustomPolicyBasedResultsValidator</ramp:policyValidatorCbClass>
<ramp:signatureCrypto>
<ramp:crypto provider="org.apache.ws.security.components.crypto.Merlin">
<ramp:property name="org.apache.ws.security.crypto.merlin.keystore.type">JKS</ramp:property>
<ramp:property name="org.apache.ws.security.crypto.merlin.file">service.jks</ramp:property>
<ramp:property name="org.apache.ws.security.crypto.merlin.keystore.password">apache</ramp:property>
</ramp:crypto>
</ramp:signatureCrypto>
</ramp:RampartConfig>
R Srini
Ranch Hand

Joined: Feb 19, 2010
Posts: 215
Hi. I don't have experience with Rampart per se, but this type of thing is usually done by specifying a callback class, e.g. class PWCallback extends javax.security.auth.callback.CallbackHandler. A few links:

- Search for passwordCallbackClass in this page.
- Sun tutorial
- org.apache.ws.security.WSPasswordCallback - also has a nice example

Hope that helps.
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Encrypt org.apache.ws.security.crypto.merlin.keystore.password
 
Similar Threads
Rampart 1.5 deployment and password encryption.
SOAP Header missing using (Hash values do not match ) Rampart/Axis2
ERROR in WS client
SOAP Header missing using Rampart w/ Axis2 Generated Stub
Rampart: Plain Text Passwords in policy.xml