public class XMLSignatureValidationStageTest extends BaseDOMTest
XMLSchemaValidationStage.| Modifier and Type | Field and Description |
|---|---|
private Certificate |
signingCert |
testingClass| Constructor and Description |
|---|
XMLSignatureValidationStageTest()
Constructor sets class under test.
|
| Modifier and Type | Method and Description |
|---|---|
private net.shibboleth.metadata.dom.DOMElementItem |
makeItem(String name) |
void |
testDigestBlacklist()
Test digest algorithm blacklist.
|
void |
testEmptyRefNotPermitted()
Test that a signature with an empty reference is not permitted if disallowed.
|
void |
testEmptyRefPermitted()
Test that a signature with an empty reference is permitted by default.
|
void |
testInvalidSignature()
Test that a metadata element with an invalid signature is labelled with an error.
|
void |
testRequiredSignature()
Test that metadata elements that do not contain signature are appropriately labelled when valid signatures
are required.
|
void |
testSignatureMethodBlacklist()
Test signature method blacklist.
|
void |
testValidSignature()
Tests verifying a file with a valid signature.
|
assertXMLIdentical, countErrors, getParserPool, readDOMItem, readXMLData, setUpclassRelativeResource, getClasspathResource, packageRelativeResource, simpleClassRelativeNameprivate final Certificate signingCert
public XMLSignatureValidationStageTest()
throws IOException
IOExceptionprivate net.shibboleth.metadata.dom.DOMElementItem makeItem(String name) throws net.shibboleth.utilities.java.support.xml.XMLParserException
net.shibboleth.utilities.java.support.xml.XMLParserExceptionpublic void testValidSignature()
throws Exception
Exceptionpublic void testInvalidSignature()
throws Exception
Exceptionpublic void testRequiredSignature()
throws Exception
Exceptionpublic void testDigestBlacklist()
throws Exception
Exceptionpublic void testSignatureMethodBlacklist()
throws Exception
Exceptionpublic void testEmptyRefPermitted()
throws Exception
ExceptionCopyright © 1999–2016. All rights reserved.