net.shibboleth.metadata.dom
Class XMLSignatureValidationStageTest

java.lang.Object
  extended by net.shibboleth.metadata.dom.BaseDomTest
      extended by net.shibboleth.metadata.dom.XMLSignatureValidationStageTest

public class XMLSignatureValidationStageTest
extends BaseDomTest

Unit test for XMLSchemaValidationStage.


Constructor Summary
XMLSignatureValidationStageTest()
           
 
Method Summary
 void testInvalidSignature()
          Test that a metadata element with an invalid signature is removed from the collection.
 void testRequiredSignature()
          Test that metadata elements that do not contain signature are appropriately filtered out when valid signatures are required.
 void testValidSignature()
          Tests verifying a file with a valid signature.
 
Methods inherited from class net.shibboleth.metadata.dom.BaseDomTest
assertXmlIdentical, getParserPool, readTestRelativeXmlData, readXmlData, setUp
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

XMLSignatureValidationStageTest

public XMLSignatureValidationStageTest()
Method Detail

testValidSignature

public void testValidSignature()
                        throws Exception
Tests verifying a file with a valid signature.

Throws:
Exception - thrown if there is a problem verifying the data

testInvalidSignature

public void testInvalidSignature()
                          throws Exception
Test that a metadata element with an invalid signature is removed from the collection.

Throws:
Exception - thrown if there is a problem checking the signature

testRequiredSignature

public void testRequiredSignature()
                           throws Exception
Test that metadata elements that do not contain signature are appropriately filtered out when valid signatures are required.

Throws:
Exception - thrown if there is a problem checking signatures


Copyright © 1999-2012. All Rights Reserved.