Hi,

You can create and initialize Properties object yourself and use it as 
constructor argument to instantiate Merlin crypto provider.
After that set Merlin crypto provider using "ws-security.encyption.crypto" and 
"ws-security.signature.crypto" message properties.

Regards,
Andrei.

From: Karnam, Jayashankar [mailto:[email protected]]
Sent: Freitag, 7. März 2014 12:18
To: Bernd Trops; Andrei Shakirin
Cc: [email protected]
Subject: RE: Encryption Properties

Hi Andrei/Bernd,

>From the provided CXF samples, we are setting the keystore properties file 
>directly to the interceptors while engaging encryption or security.

Is there any way to use this Properties object or some crypto object which is 
created with the help of this properties object instead of the file ?

Properties keyStoreProps = new Properties();
              keyStoreProps.setProperty("apache.ws.security.crypto.provider", " 
apache.ws.security.components.crypto.Merlin");
              
keyStoreProps.setProperty("apache.ws.security.crypto.merlin.keystore.type", 
keyStoreObj.getKeyStoreType());
              
keyStoreProps.setProperty("apache.ws.security.crypto.merlin.keystore.password", 
keyStoreObj.getKeyStorePass());
              keyStoreProps.put("keyStoreRaw", keyStoreObj.getKeyStoreBytes());
              return keyStoreProps;

The point is we cannot use properties file everytime, can you suggest some 
alternative ?

Thanks,
Jayashankar

Reply via email to