santuario-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From mul...@apache.org
Subject svn commit: r562544 - /xml/security/branches/stax_jsr105/src/com/r_bg/stax/StaxValidateContext.java
Date Fri, 03 Aug 2007 18:35:13 GMT
Author: mullan
Date: Fri Aug  3 11:35:12 2007
New Revision: 562544

URL: http://svn.apache.org/viewvc?view=rev&rev=562544
Log:
Add ctor that takes KeySelector.

Modified:
    xml/security/branches/stax_jsr105/src/com/r_bg/stax/StaxValidateContext.java

Modified: xml/security/branches/stax_jsr105/src/com/r_bg/stax/StaxValidateContext.java
URL: http://svn.apache.org/viewvc/xml/security/branches/stax_jsr105/src/com/r_bg/stax/StaxValidateContext.java?view=diff&rev=562544&r1=562543&r2=562544
==============================================================================
--- xml/security/branches/stax_jsr105/src/com/r_bg/stax/StaxValidateContext.java (original)
+++ xml/security/branches/stax_jsr105/src/com/r_bg/stax/StaxValidateContext.java Fri Aug 
3 11:35:12 2007
@@ -29,7 +29,19 @@
 	}
 	
     public StaxValidateContext(Key key, XMLStreamReader reader) {
+	if (key == null || reader == null) {
+	    throw new NullPointerException();
+	}
 	setKeySelector(KeySelector.singletonKeySelector(key));
+	this.reader = reader;		
+	sig = new StaxSignatureVerificator();
+    }
+
+    public StaxValidateContext(KeySelector ks, XMLStreamReader reader) {
+	if (ks == null || reader == null) {
+	    throw new NullPointerException();
+	}
+	this.ks = ks;
 	this.reader = reader;		
 	sig = new StaxSignatureVerificator();
     }



Mime
View raw message