Davanum Srinivas wrote:
OK. I get "ant jar" through with IBM SDK 1.4.1 on linux (redhat fedora core 1). Cannot test if this solves my problem, cause I got no cert withwould you be able to compile a fresh version of xml-security from our cvs? if so, try replacing sun's DerValue with com.ibm.security.util.DerValue and see if that works, if it does, i am willing to patch the code using java reflection api to switch between the two.
extension handy.
Two classes with dependencies to sun-packages found:
org/apache/xml/security/ - keys/content/x509/XMLX509SKI.java depends on sun.security.util.DerValue - keys/content/x509/XMLX509SubjectName.java depends on sun.security.x509.X500Name
Replacing sun by com.ibm does not work smoothly, because:
[javac] /opt/java/xml-security/HEAD/xml-security/src/org/apache/xml/security
/keys/content/x509/XMLX509SKI.java:142: tag has private access in com.ibm.security.util.DerValue
[javac] if (dervalue.tag != DerValue.tag_OctetString) {
dervalue.getTag() seems to work.
thanks, -- dims
I thank YOU,
Heiner
P.S.: Applying the s/sun/com.ibm/ and .tag -> .getTag() changes, the
compiler likes it (it compiles, ship it :),
but some tests fail.
The difference between IBM SDK 1.4.1 (SR2?) and
Sun j2sdk 1.4.2_04:
org.apache.xml.security.test.c14n.implementations.Canonicalizer20010315Test FAILED