Exemplo n.º 1
0
        public void SetUp()
        {
            sfc = new StandardFormCanonicalizer();

            //Create valid signedInfo node
            validSignedInfo  = "";
            validSignedInfo += "<SignedInfo Id=\"myFirstSign\">";
            validSignedInfo += "<CanonicalizationMethod Algorithm=\"http://www.w3.org/TR/2001/REC-xml-c14n-20010315\"";
            validSignedInfo += "/><SignatureMethod Algorithm=\"xml:dig:signer:rsa-dsa\" />";
            validSignedInfo += "<Reference URI=\"http://www.google.com\"><DigestMethod>";
            validSignedInfo += "http://www.w3.org/2000/09/xmldsig#sha1</DigestMethod><DigestValue>";
            validSignedInfo += "bTKJD7cSqIIsDioMYGfAvb9hNug=</DigestValue></Reference></SignedInfo>";
        }
Exemplo n.º 2
0
 public void TearDown()
 {
     sfc               = null;
     validSignedInfo   = null;
     invalidSignedInfo = null;
 }