You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@santuario.apache.org by ra...@apache.org on 2004/11/18 23:51:32 UTC
cvs commit: xml-security/src/org/apache/xml/security/signature Manifest.java
raul 2004/11/18 14:51:32
Modified: src/org/apache/xml/security/signature Manifest.java
Log:
Fix to be able to validate signatures in memory
Revision Changes Path
1.31 +5 -0 xml-security/src/org/apache/xml/security/signature/Manifest.java
Index: Manifest.java
===================================================================
RCS file: /home/cvs/xml-security/src/org/apache/xml/security/signature/Manifest.java,v
retrieving revision 1.30
retrieving revision 1.31
diff -u -r1.30 -r1.31
--- Manifest.java 25 Sep 2004 19:42:22 -0000 1.30
+++ Manifest.java 18 Nov 2004 22:51:32 -0000 1.31
@@ -286,6 +286,11 @@
*/
public boolean verifyReferences(boolean followManifests)
throws MissingResourceFailureException, XMLSecurityException {
+ if (_referencesEl==null) {
+ this._referencesEl =
+ XMLUtils.selectDsNodes(this._constructionElement.getFirstChild(),
+ Constants._TAG_REFERENCE);
+ }
if (log.isDebugEnabled()) {
log.debug("verify " +_referencesEl.length + " References");
log.debug("I am " + (followManifests