[java-opensaml COMMIT] in /trunk/opensaml-saml-impl/src/test: java/org/opensaml/saml/security/SAMLSignatureProfileVal...
noreply at shibboleth.net
noreply at shibboleth.net
Mon Feb 25 21:08:04 EST 2013
Author: scantor
Date: Mon Feb 25 21:08:04 2013
New Revision: 3230
URL: http://svn.shibboleth.net/view/java-opensaml?rev=3230&view=rev
Log:
Port java-opensaml2 r1549.
Added:
trunk/opensaml-saml-impl/src/test/resources/data/org/opensaml/saml/security/Signed-AuthnRequest-DuplicateIDs.xml (with props)
Modified:
trunk/opensaml-saml-impl/src/test/java/org/opensaml/saml/security/SAMLSignatureProfileValidatorTest.java
Modified: trunk/opensaml-saml-impl/src/test/java/org/opensaml/saml/security/SAMLSignatureProfileValidatorTest.java
URL: http://svn.shibboleth.net/view/java-opensaml/trunk/opensaml-saml-impl/src/test/java/org/opensaml/saml/security/SAMLSignatureProfileValidatorTest.java?rev=3230&r1=3229&r2=3230&view=diff
==============================================================================
--- trunk/opensaml-saml-impl/src/test/java/org/opensaml/saml/security/SAMLSignatureProfileValidatorTest.java (original)
+++ trunk/opensaml-saml-impl/src/test/java/org/opensaml/saml/security/SAMLSignatureProfileValidatorTest.java Mon Feb 25 21:08:04 2013
@@ -95,6 +95,12 @@
Signature sig = getSignature("/data/org/opensaml/saml/security/Signed-AuthnRequest-MissingEnvelopedTransform.xml");
assertValidationFail("Invalid signature - missing Enveloped Transform", sig);
}
+
+ @Test
+ public void testInvalidDuplicateIDs() {
+ Signature sig = getSignature("/data/org/opensaml/saml/security/Signed-AuthnRequest-DuplicateIDs.xml");
+ assertValidationFail("Invalid signature - duplicate IDs", sig);
+ }
/**
* Get the signature to validated. Assume the document element of the file is
More information about the commits
mailing list