[java-opensaml2 COMMIT] in /branches/REL_2/src/test: java/org/opensaml/security/SAMLSignatureProfileValidatorTest.jav...
noreply at shibboleth.net
noreply at shibboleth.net
Thu Sep 29 21:03:02 BST 2011
Author: putmanb
Date: Thu Sep 29 21:03:02 2011
New Revision: 1549
URL: http://svn.shibboleth.net/view/java-opensaml2?rev=1549&view=rev
Log:
Unit test associated with changes for JOST-161.
Added:
branches/REL_2/src/test/resources/data/org/opensaml/security/Signed-AuthnRequest-DuplicateIDs.xml (with props)
Modified:
branches/REL_2/src/test/java/org/opensaml/security/SAMLSignatureProfileValidatorTest.java
Modified: branches/REL_2/src/test/java/org/opensaml/security/SAMLSignatureProfileValidatorTest.java
URL: http://svn.shibboleth.net/view/java-opensaml2/branches/REL_2/src/test/java/org/opensaml/security/SAMLSignatureProfileValidatorTest.java?rev=1549&r1=1548&r2=1549&view=diff
==============================================================================
--- branches/REL_2/src/test/java/org/opensaml/security/SAMLSignatureProfileValidatorTest.java (original)
+++ branches/REL_2/src/test/java/org/opensaml/security/SAMLSignatureProfileValidatorTest.java Thu Sep 29 21:03:02 2011
@@ -84,6 +84,11 @@
assertValidationFail("Invalid signature - missing Enveloped Transform", sig);
}
+ public void testInvalidDuplicateIDs() {
+ Signature sig = getSignature("/data/org/opensaml/security/Signed-AuthnRequest-DuplicateIDs.xml");
+ assertValidationFail("Invalid signature - duplicate IDs", sig);
+ }
+
/**
* Get the signature to validated. Assume the document element of the file is
* a SignableSAMLObject.
More information about the commits
mailing list