DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUGĀ· RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT <http://issues.apache.org/bugzilla/show_bug.cgi?id=41569>. ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED ANDĀ· INSERTED IN THE BUG DATABASE.
http://issues.apache.org/bugzilla/show_bug.cgi?id=41569 Summary: Cannot specify dynamically a specific JCE Provider with the DSA Signature Product: Security Version: unspecified Platform: All OS/Version: All Status: NEW Severity: normal Priority: P2 Component: Signature AssignedTo: security-dev@xml.apache.org ReportedBy: [EMAIL PROTECTED] It is impossible to specify dynamically a specific JCE provider with the org.apache.xml.security.algorithms.implementations.SignatureDSA of the XML- Security java project. However it is possible to do it with SignatureBaseRSA and with SignatureECDSA. The problem is that there is just this line in the constructor of the DSA implementation : this._signatureAlgorithm = Signature.getInstance(algorithmID); ------------------------------ It should be added theses lines to the constructor of SignatureDSA to fix this problem: String provider = JCEMapper.getProviderId(); try { if (provider == null) { this._signatureAlgorithm = Signature.getInstance(algorithmID); } else { this._signatureAlgorithm = Signature.getInstance(algorithmID,provider); } } catch (java.security.NoSuchAlgorithmException ex) { ..... } ------------------------------ -- Configure bugmail: http://issues.apache.org/bugzilla/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are the assignee for the bug, or are watching the assignee.