Skip to main content

ws-policy - external policy references / wsdl imports with different keystore

1 reply [Last post]
snowch
Offline
Joined: 2007-06-10
Points: 0

Hi,

I would like to externalize my policy to decouple it from the wsdl so that it can be re-used in my organisation.

However, I don't want the same keystore to be used for each service that implements the policy. Is there a way that the keystore can be specified by the web service implementation and not in the policy?

Many thanks in advance,

Chris

<wsp1:Policy>

...

<!-- how can i remove the keystore from the policy file -->

<sc:KeyStore wspp:visibility="private"
location="C:\DEV\Netbeans\glassfish-3.1.1\glassfish\domains\domain1\config\keystore.jks"
type="JKS"
storepass="changeit"
alias="xws-security-server"/>

...

</wsp1:Policy>

Reply viewing options

Select your preferred way to display the comments and click "Save settings" to activate your changes.
snowch
Offline
Joined: 2007-06-10
Points: 0

I guess one way would be to use the maven replacer plugin to change the keystore details as part of the build process.