Hello, I have found a sort of way of doing this. I have created a singleton
class called SecurityProperties where I set the properties I want to put in
crypto.properties. In my custom Merlin class, MyMerlin I do the following
public MyMerlin(Properties props,ClassLoader cl)
{
super(addExtraProps(props),cl);
}
private Properties addExtraProps(Properties props)
{
props.put("org.apache.ws.security.crypto.merlin.file",
SecurityProperties.getInstance().getProperty("keystoreLocation"));
}
This works fine for what I wanted to do.
Cheers.
From: "Dave Bagguley" <[EMAIL PROTECTED]>
To: [email protected]
Subject: How Do I Use a Custom Crypto Provider?
Date: Thu, 09 Nov 2006 16:56:26 +0000
Hello,
I want to set the contents of crypto.properties dynamically, I believe to
do this I need to subclass Merlin and then reference this new class in the
crypto.properties file.
So far I have a subclass of Merlin and have referenced it in my
crypto.properties file. What I don't understand is where I set my
properties.
Where do I define the properties that get passed to the new subclass of
Merlin? The call to the new subclass seems to be done automatically so I
don't know how to customise the properties it recieves.
Please can someone give me some help of how to use a subclass of merlin to
dynamically set the crypto properties.
Thanks
_________________________________________________________________
The new Windows Live Toolbar helps you guard against viruses
http://toolbar.live.com/?mkt=en-gb
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
_________________________________________________________________
Be the first to hear what's new at MSN - sign up to our free newsletters!
http://www.msn.co.uk/newsletters
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]