Hi Dave,

Could you please send me the complete code of your MyMerlin and
SecurityProperties singleton class as I am also working on the similar
problem that you have solved?



Best Regards,
Shyam Shukla
-----Original Message-----
From: Dave Bagguley [mailto:[EMAIL PROTECTED] 
Sent: Friday, November 10, 2006 6:08 PM
To: [email protected]
Subject: RE: How Do I Use a Custom Crypto Provider?

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]


DISCLAIMER
==========
This e-mail may contain privileged and confidential information which is the 
property of Persistent Systems Pvt. Ltd. It is intended only for the use of the 
individual or entity to which it is addressed. If you are not the intended 
recipient, you are not authorized to read, retain, copy, print, distribute or 
use this message. If you have received this communication in error, please 
notify the sender and delete all copies of this message. Persistent Systems 
Pvt. Ltd. does not accept any liability for virus infected mails.

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to