Class DetachedSignatureTest

    • Field Detail

      • log

        private final org.slf4j.Logger log
        Class logger.
      • goodCredential

        private BasicCredential goodCredential
        Key resolver containing proper verification key.
      • badCredential

        private BasicCredential badCredential
        Key resolver containing invalid verification key.
      • parserPool

        private BasicParserPool parserPool
        Parser pool used to parse example config files.
      • algoURI

        private String algoURI
        Signature algorithm URI.
    • Constructor Detail

      • DetachedSignatureTest

        public DetachedSignatureTest()
    • Method Detail

      • testExternalSignatureAndVerification

        public void testExternalSignatureAndVerification()
                                                  throws MarshallingException,
                                                         SignatureException
        Tests creating a detached signature within a different document as the element signed and then verifying it. The external references used are the InCommon and InQueue metadata files.
        Throws:
        MarshallingException - thrown if the XMLObject tree can not be marshalled
        SignatureException - ...
      • getXMLObjectWithSignature

        private SignableSimpleXMLObject getXMLObjectWithSignature()
        Creates a XMLObject that has another XMLObject and a Signature as children. The Signature is is a detached signature of its sibling.
        Returns:
        the XMLObject