Title: Nachricht
Hassan,
 
some of the parameters used by WSS4J are hardcoded (usually as
String in WSHandlerConstants). Most, if not all, of these "hardcoded"
parameters are required to have a specific value to ensure interoperability.
For example c14n:  AFAIK, it is required to be C14nExclusive, other
values would not work for interoperability (probably there is also a technical
reason to have C14nExclusive - need to look at the specs).
 
Also the specific transformation algo (described in the OASIS WSS
specifications) is mandatory.
 
Thus, if you change c14n or transformation parameters you may do so
by modifying the code as you proposed. For the standard and interoperable
use of WSS4J I wouldn't recommend it.
 
Regards,
Werner
-----Urspr�ngliche Nachricht-----
Von: Hassan Faouaz [mailto:[EMAIL PROTECTED]
Gesendet: Dienstag, 5. April 2005 16:20
An: [email protected]
Betreff: setting the canonicalization algorithm using axis deployment script????

I have realized that if you use AXIS deploy script, the canonicalization algorthim is hardcoded. There is no way to change it, after looking at the code.  I had to change the WSSignEnvelope class to look at the options in the deploy script. Is this implemented somewhere, that I am not aware of?

 

Code changes I made to allow setting canonicalization algorithm in WSDoAllSender.java, WSHandlerConstants.java.

 

 

<snip>

reqData.canonicalizationAlgo = (String) getOption(WSHandlerConstants.CONANICALIZATION_ALGO);

 

if (reqData.canonicalizationAlgo != null){

             wsSign.setSigCanonicalization(reqData.canonicalizationAlgo);

        }   

 

</snip>

 

is that true for transform algorithm as well???

 

Thanks in advance..

 

Hassan

 

 

Reply via email to