1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 224 225 226 227 228 229 230 231 232 233 234 235 236 237 238 239 240 241 242 243 244 245 246 247 248 249 250 251 252 253 254 255 256 257 258 259 260 261 262 263 264 265 266 267 268 269 270 271 272 273 274 275 276 277 278 279 280 281 282 283 284 285 286 287 288 289 290 291 292 293 294 295 296 297 298 299 300 301 302 303 304 305 306 307 308 309 310 311 312 313 314 315 316 317 318 319 320 321 322 323 324 325 326 327 328 329 330 331 332 333 334 335 336 337 338 339 340 341 342 343 344 345 346 347 348 349 350 351 352 353 354 355 356 357 358 359 360 361 362 363 364 365 366 367 368 369 370 371 372 373 374 375 376 377 378 379 380 381 382 383 384 385 386 387 388 389 390 391 392 393 394 395 396 397 398 399 400 401 402 403 404 405 406 407 408 409 410 411 412 413 414 415 416 417 418 419 420 421 422 423 424 425 426 427 428 429 430 431 432 433 434 435 436 437 438 439 440 441 442 443 444 445 446 447 448 449 450 451 452 453 454 455 456 457 458 459 460 461 462 463 464 465 466 467 468 469 470 471 472 473 474 475 476 477 478 479 480 481 482 483 484 485 486 487 488 489 490 491 492 493 494 495 496 497 498 499 500 501 502 503 504 505 506 507 508 509 510 511 512 513 514 515 516 517 518 519 520 521 522 523 524 525 526 527 528 529 530 531 532 533 534 535 536 537 538 539 540 541 542 543 544 545 546 547 548 549 550 551 552 553 554 555 556 557 558 559 560 561 562 563 564 565 566 567 568 569 570 571 572 573 574 575 576 577 578 579 580 581 582 583 584 585 586 587 588 589 590 591 592 593 594 595 596 597 598 599 600 601 602 603 604 605 606 607 608 609 610 611 612 613 614 615 616 617 618 619 620 621 622 623 624 625 626 627 628 629 630 631 632 633 634 635 636 637 638 639 640 641 642 643 644 645 646 647 648 649 650 651 652 653 654 655 656 657 658 659 660 661 662 663 664 665 666 667 668 669 670 671 672 673 674 675 676 677 678 679 680 681 682 683 684 685 686 687 688 689 690 691 692 693 694 695 696 697 698 699 700 701 702 703 704 705 706 707 708 709 710 711 712 713 714 715 716 717 718 719 720 721 722 723 724 725 726 727 728 729 730 731 732 733 734 735 736 737 738 739 740 741 742 743 744 745 746 747 748 749 750 751 752 753 754 755 756 757 758 759 760 761 762 763 764 765 766 767 768 769 770 771 772 773 774 775 776 777 778 779 780 781 782 783 784 785 786 787 788 789 790 791 792 793 794 795 796 797 798 799 800 801 802 803 804 805 806 807 808 809 810 811 812 813 814 815 816 817 818 819 820 821 822 823 824 825 826 827 828 829 830 831 832 833 834 835 836 837 838 839 840 841 842 843 844 845 846 847 848 849 850 851 852 853 854 855 856 857 858 859 860 861 862 863 864 865 866 867 868 869 870 871 872 873 874 875 876 877 878 879 880 881 882 883 884 885 886 887 888 889 890 891 892 893 894 895 896 897 898 899 900 901 902 903 904 905 906 907 908 909 910 911 912 913 914 915 916 917 918 919 920 921 922 923 924 925 926 927 928 929 930 931 932 933 934 935 936 937 938 939 940 941 942 943 944 945 946 947 948 949 950 951 952 953 954 955 956 957 958 959 960 961 962 963 964 965 966 967 968 969 970 971 972 973 974 975 976 977 978 979 980 981 982 983 984 985 986 987 988 989 990 991 992 993 994 995 996 997 998 999 1000 1001 1002 1003 1004 1005 1006 1007 1008 1009 1010 1011 1012 1013 1014 1015 1016 1017 1018 1019 1020 1021 1022 1023 1024 1025 1026 1027 1028 1029 1030 1031 1032 1033 1034 1035 1036 1037 1038 1039 1040 1041 1042 1043 1044 1045 1046 1047 1048 1049 1050 1051 1052 1053 1054 1055 1056 1057 1058 1059 1060 1061 1062 1063 1064 1065 1066 1067 1068 1069 1070 1071 1072 1073 1074 1075 1076 1077 1078 1079 1080 1081 1082 1083 1084 1085 1086 1087 1088 1089 1090 1091 1092 1093 1094 1095 1096 1097 1098 1099 1100 1101 1102 1103 1104 1105 1106 1107 1108 1109 1110 1111 1112 1113 1114 1115 1116 1117 1118 1119 1120 1121 1122 1123 1124 1125 1126 1127 1128 1129 1130 1131 1132 1133 1134 1135 1136 1137 1138 1139 1140 1141 1142 1143 1144 1145 1146 1147 1148 1149 1150 1151 1152 1153 1154 1155 1156 1157 1158 1159 1160 1161 1162 1163 1164 1165 1166 1167 1168 1169 1170 1171 1172 1173 1174 1175 1176 1177 1178 1179 1180 1181 1182 1183 1184 1185 1186 1187 1188 1189 1190 1191 1192 1193 1194 1195 1196 1197 1198 1199 1200 1201 1202 1203 1204 1205 1206 1207 1208 1209 1210 1211 1212 1213 1214 1215 1216 1217 1218 1219 1220 1221 1222 1223 1224 1225 1226 1227 1228 1229 1230 1231 1232 1233 1234 1235 1236 1237 1238 1239 1240 1241 1242 1243 1244 1245 1246 1247 1248 1249 1250 1251 1252 1253 1254 1255 1256 1257 1258 1259 1260 1261 1262 1263 1264 1265 1266 1267 1268 1269 1270 1271 1272 1273 1274 1275 1276 1277 1278 1279 1280 1281 1282 1283 1284 1285 1286 1287 1288 1289 1290 1291 1292 1293 1294 1295 1296 1297 1298 1299 1300 1301 1302 1303 1304 1305 1306 1307 1308 1309 1310 1311 1312 1313 1314 1315 1316 1317 1318 1319 1320 1321 1322 1323 1324 1325 1326 1327 1328 1329 1330 1331 1332 1333 1334 1335 1336 1337 1338 1339 1340 1341 1342 1343 1344 1345 1346 1347 1348 1349 1350 1351 1352 1353 1354 1355 1356 1357 1358 1359 1360 1361 1362 1363 1364 1365 1366 1367 1368 1369 1370 1371 1372 1373 1374 1375 1376 1377 1378 1379 1380 1381 1382 1383 1384 1385 1386 1387 1388 1389 1390 1391 1392 1393 1394 1395 1396 1397 1398 1399 1400 1401 1402 1403 1404 1405 1406 1407 1408 1409 1410 1411 1412 1413 1414 1415 1416 1417 1418 1419 1420 1421 1422 1423 1424 1425 1426 1427 1428 1429 1430 1431 1432 1433 1434 1435 1436 1437 1438 1439 1440 1441 1442 1443 1444 1445 1446 1447 1448 1449 1450 1451 1452 1453 1454 1455 1456 1457 1458 1459 1460 1461 1462 1463 1464 1465 1466 1467 1468 1469 1470 1471 1472 1473 1474 1475 1476 1477 1478 1479 1480 1481 1482 1483 1484 1485 1486 1487 1488 1489 1490 1491 1492 1493 1494 1495 1496 1497 1498 1499 1500 1501 1502 1503 1504 1505 1506 1507 1508 1509 1510 1511 1512 1513 1514 1515 1516 1517 1518 1519 1520 1521 1522 1523 1524 1525 1526 1527 1528 1529 1530 1531 1532 1533 1534 1535 1536 1537 1538 1539 1540 1541 1542 1543 1544 1545 1546 1547 1548 1549 1550 1551 1552 1553 1554 1555 1556 1557 1558 1559 1560 1561 1562 1563 1564 1565 1566 1567 1568 1569 1570 1571 1572 1573 1574 1575 1576 1577 1578 1579 1580 1581 1582 1583 1584 1585 1586 1587 1588 1589 1590 1591 1592 1593 1594 1595 1596 1597 1598 1599 1600 1601 1602 1603 1604 1605 1606 1607 1608 1609 1610 1611 1612 1613 1614 1615 1616 1617 1618 1619 1620 1621 1622 1623 1624 1625 1626 1627 1628 1629 1630 1631 1632 1633 1634 1635 1636 1637 1638 1639 1640 1641 1642 1643 1644 1645 1646 1647 1648 1649 1650 1651 1652 1653 1654 1655 1656 1657 1658 1659 1660 1661 1662 1663 1664 1665 1666 1667 1668 1669 1670 1671 1672 1673 1674 1675 1676 1677 1678 1679 1680 1681 1682 1683 1684 1685 1686 1687 1688 1689 1690 1691 1692 1693 1694 1695 1696 1697 1698 1699 1700 1701 1702 1703 1704 1705 1706 1707 1708 1709 1710 1711 1712 1713 1714 1715 1716 1717 1718 1719 1720 1721 1722 1723 1724 1725 1726 1727 1728 1729 1730 1731 1732 1733 1734 1735 1736 1737 1738 1739 1740 1741 1742 1743 1744 1745 1746 1747 1748 1749 1750 1751 1752 1753 1754 1755 1756 1757 1758 1759 1760 1761 1762 1763 1764 1765 1766 1767 1768 1769 1770 1771 1772 1773 1774 1775 1776 1777 1778 1779 1780 1781 1782 1783 1784 1785 1786 1787 1788 1789 1790 1791 1792 1793 1794 1795 1796 1797 1798 1799 1800 1801 1802 1803 1804 1805 1806 1807 1808 1809 1810 1811 1812 1813 1814 1815 1816 1817 1818 1819 1820 1821 1822 1823 1824 1825 1826 1827 1828 1829 1830 1831 1832 1833 1834 1835 1836 1837 1838 1839 1840 1841 1842 1843 1844 1845 1846 1847 1848 1849 1850 1851 1852 1853 1854 1855 1856 1857 1858 1859 1860 1861 1862 1863 1864 1865 1866 1867 1868 1869 1870 1871 1872 1873 1874 1875 1876 1877 1878 1879 1880 1881 1882 1883 1884 1885 1886 1887 1888 1889 1890 1891 1892 1893 1894 1895 1896 1897 1898 1899 1900 1901 1902 1903 1904 1905 1906 1907 1908 1909 1910 1911 1912 1913 1914 1915 1916 1917 1918 1919 1920 1921 1922 1923 1924 1925 1926 1927 1928 1929 1930 1931 1932 1933 1934 1935 1936 1937 1938 1939 1940 1941 1942 1943 1944 1945 1946 1947 1948 1949 1950 1951 1952 1953 1954 1955 1956 1957 1958 1959 1960 1961 1962 1963 1964 1965 1966 1967 1968 1969 1970 1971 1972 1973 1974 1975 1976 1977 1978 1979 1980 1981 1982 1983 1984 1985 1986 1987 1988 1989 1990 1991 1992 1993 1994 1995 1996 1997 1998 1999 2000 2001 2002 2003 2004 2005 2006 2007 2008 2009 2010 2011 2012 2013 2014 2015 2016 2017 2018 2019 2020 2021 2022 2023 2024 2025 2026 2027 2028 2029 2030 2031 2032 2033 2034 2035 2036 2037 2038 2039 2040 2041 2042 2043 2044 2045 2046 2047 2048 2049 2050 2051 2052 2053 2054 2055 2056 2057 2058 2059 2060 2061 2062 2063 2064 2065 2066 2067 2068 2069 2070 2071 2072 2073 2074 2075 2076 2077 2078 2079 2080 2081 2082 2083 2084 2085 2086 2087 2088 2089 2090 2091 2092 2093 2094 2095 2096 2097 2098 2099 2100 2101 2102 2103 2104 2105 2106 2107 2108 2109 2110
|
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html><head><meta http-equiv="Content-Type" content="text/html;charset=iso-8859-1">
<title>XML-Security-C: DSIGSignature Class Reference</title>
<link href="doxygen.css" rel="stylesheet" type="text/css">
</head><body>
<!-- Generated by Doxygen 1.4.2 -->
<div class="qindex"><a class="qindex" href="index.html">Main Page</a> | <a class="qindex" href="modules.html">Modules</a> | <a class="qindex" href="hierarchy.html">Class Hierarchy</a> | <a class="qindex" href="annotated.html">Class List</a> | <a class="qindex" href="dirs.html">Directories</a> | <a class="qindex" href="files.html">File List</a> | <a class="qindex" href="functions.html">Class Members</a> | <a class="qindex" href="globals.html">File Members</a> | <a class="qindex" href="pages.html">Related Pages</a></div>
<h1>DSIGSignature Class Reference<br>
<small>
[<a class="el" href="group__pubsig.html">Main Signature API</a>]</small>
</h1><code>#include <<a class="el" href="DSIGSignature_8hpp-source.html">DSIGSignature.hpp</a>></code>
<p>
Collaboration diagram for DSIGSignature:<p><center><img src="classDSIGSignature__coll__graph.png" border="0" usemap="#DSIGSignature__coll__map" alt="Collaboration graph"></center>
<map name="DSIGSignature__coll__map">
<area href="classsafeBuffer.html" shape="rect" coords="114,9,197,33" alt="">
<area href="classXSECSafeBufferFormatter.html" shape="rect" coords="171,190,353,214" alt="">
<area href="classsbFormatTarget.html" shape="rect" coords="97,100,214,124" alt="">
<area href="classXSECEnv.html" shape="rect" coords="305,294,387,318" alt="">
<area href="classDSIGSignedInfo.html" shape="rect" coords="782,385,899,409" alt="">
<area href="classDSIGKeyInfoList.html" shape="rect" coords="310,385,430,409" alt="">
<area href="classXSECURIResolver.html" shape="rect" coords="469,190,605,214" alt="">
<area href="classXSECKeyInfoResolver.html" shape="rect" coords="454,385,611,409" alt="">
<area href="classXSECCryptoKey.html" shape="rect" coords="635,385,758,409" alt="">
<area href="classDSIGReferenceList.html" shape="rect" coords="773,294,909,318" alt="">
</map>
<center><font size="2">[<a href="graph_legend.html">legend</a>]</font></center><a href="classDSIGSignature-members.html">List of all members.</a><hr><a name="_details"></a><h2>Detailed Description</h2>
The main class used for manipulating XML Digital Signatures.
<p>
The DSIGSignature class is used to manipulate and verify <signature> blocks. It should only ever be created via the <a class="el" href="classXSECProvider.html">XSECProvider</a> class.
<p>
<table border="0" cellpadding="0" cellspacing="0">
<tr><td></td></tr>
<tr><td colspan="2"><br><h2>Public Member Functions</h2></td></tr>
<tr><td colspan="2"><div class="groupHeader">Load and Setup Functions</div></td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top">void </td><td class="memItemRight" valign="bottom"><a class="el" href="classDSIGSignature.html#z43_0">load</a> (void)</td></tr>
<tr><td class="mdescLeft"> </td><td class="mdescRight">Load the signature information from the DOM source. <a href="#z43_0"></a><br></td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top">void </td><td class="memItemRight" valign="bottom"><a class="el" href="classDSIGSignature.html#z43_1">setSigningKey</a> (<a class="el" href="classXSECCryptoKey.html">XSECCryptoKey</a> *k)</td></tr>
<tr><td class="mdescLeft"> </td><td class="mdescRight">Externally set the signing/verification key. <a href="#z43_1"></a><br></td></tr>
<tr><td colspan="2"><div class="groupHeader">Signature Operations</div></td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top">bool </td><td class="memItemRight" valign="bottom"><a class="el" href="classDSIGSignature.html#z44_0">verify</a> (void)</td></tr>
<tr><td class="mdescLeft"> </td><td class="mdescRight">Verify that a signature is valid. <a href="#z44_0"></a><br></td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top">bool </td><td class="memItemRight" valign="bottom"><a class="el" href="classDSIGSignature.html#z44_1">verifySignatureOnly</a> (void)</td></tr>
<tr><td class="mdescLeft"> </td><td class="mdescRight">Verify a signature is valid (skip references). <a href="#z44_1"></a><br></td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top">void </td><td class="memItemRight" valign="bottom"><a class="el" href="classDSIGSignature.html#z44_2">sign</a> (void)</td></tr>
<tr><td class="mdescLeft"> </td><td class="mdescRight">Sign a DSIGSignature DOM structure. <a href="#z44_2"></a><br></td></tr>
<tr><td colspan="2"><div class="groupHeader">Functions to create and manipulate signature elements.</div></td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top">void </td><td class="memItemRight" valign="bottom"><a class="el" href="classDSIGSignature.html#z45_0">setDSIGNSPrefix</a> (const XMLCh *prefix)</td></tr>
<tr><td class="mdescLeft"> </td><td class="mdescRight">Set the prefix be used for the DSIG namespace. <a href="#z45_0"></a><br></td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top">void </td><td class="memItemRight" valign="bottom"><a class="el" href="classDSIGSignature.html#z45_1">setECNSPrefix</a> (const XMLCh *prefix)</td></tr>
<tr><td class="mdescLeft"> </td><td class="mdescRight">Set the prefix be used for the Exclusive Canonicalisation namespace. <a href="#z45_1"></a><br></td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top">void </td><td class="memItemRight" valign="bottom"><a class="el" href="classDSIGSignature.html#z45_2">setXPFNSPrefix</a> (const XMLCh *prefix)</td></tr>
<tr><td class="mdescLeft"> </td><td class="mdescRight">Set the prefix be used for the XPath-Filter2 namespace. <a href="#z45_2"></a><br></td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top">void </td><td class="memItemRight" valign="bottom"><a class="el" href="classDSIGSignature.html#z45_3">setPrettyPrint</a> (bool flag)</td></tr>
<tr><td class="mdescLeft"> </td><td class="mdescRight">Set Pretty Print. <a href="#z45_3"></a><br></td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top">bool </td><td class="memItemRight" valign="bottom"><a class="el" href="classDSIGSignature.html#z45_4">getPrettyPrint</a> (void)</td></tr>
<tr><td class="mdescLeft"> </td><td class="mdescRight">Tell caller whether PrettyPrinting is active. <a href="#z45_4"></a><br></td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top">XERCES_CPP_NAMESPACE_QUALIFIER <br>
DOMElement * </td><td class="memItemRight" valign="bottom"><a class="el" href="classDSIGSignature.html#z45_5">createBlankSignature</a> (XERCES_CPP_NAMESPACE_QUALIFIER DOMDocument *doc, <a class="el" href="DSIGConstants_8hpp.html#a102">canonicalizationMethod</a> cm=CANON_C14N_NOC, <a class="el" href="DSIGConstants_8hpp.html#a103">signatureMethod</a> sm=SIGNATURE_DSA, <a class="el" href="DSIGConstants_8hpp.html#a104">hashMethod</a> hm=HASH_SHA1)</td></tr>
<tr><td class="mdescLeft"> </td><td class="mdescRight">Create a <Signature> DOM structure. <a href="#z45_5"></a><br></td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="el" href="classDSIGReference.html">DSIGReference</a> * </td><td class="memItemRight" valign="bottom"><a class="el" href="classDSIGSignature.html#z45_6">createReference</a> (const XMLCh *URI, <a class="el" href="DSIGConstants_8hpp.html#a104">hashMethod</a> hm=HASH_SHA1, char *type=NULL)</td></tr>
<tr><td class="mdescLeft"> </td><td class="mdescRight">Add a new reference to the end of the list of <Reference> nodes. <a href="#z45_6"></a><br></td></tr>
<tr><td colspan="2"><div class="groupHeader">General and Information functions.</div></td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top">unsigned int </td><td class="memItemRight" valign="bottom"><a class="el" href="classDSIGSignature.html#z46_0">calculateSignedInfoAndReferenceHash</a> (unsigned char *hashBuf, unsigned int hashBufLen)</td></tr>
<tr><td class="mdescLeft"> </td><td class="mdescRight">Get the hash of the Signed Value. <a href="#z46_0"></a><br></td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top">unsigned int </td><td class="memItemRight" valign="bottom"><a class="el" href="classDSIGSignature.html#z46_1">calculateSignedInfoHash</a> (unsigned char *hashBuf, unsigned int hashBufLen)</td></tr>
<tr><td class="mdescLeft"> </td><td class="mdescRight">Get the hash of the Signed Value. <a href="#z46_1"></a><br></td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="el" href="classDSIGReferenceList.html">DSIGReferenceList</a> * </td><td class="memItemRight" valign="bottom"><a class="el" href="classDSIGSignature.html#z46_2">getReferenceList</a> (void)</td></tr>
<tr><td class="mdescLeft"> </td><td class="mdescRight">Return the reference list for outside use. <a href="#z46_2"></a><br></td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="el" href="classXSECBinTXFMInputStream.html">XSECBinTXFMInputStream</a> * </td><td class="memItemRight" valign="bottom"><a class="el" href="classDSIGSignature.html#z46_3">makeBinInputStream</a> (void) const </td></tr>
<tr><td class="mdescLeft"> </td><td class="mdescRight">Create an input stream from SignedInfo. <a href="#z46_3"></a><br></td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top">const XMLCh * </td><td class="memItemRight" valign="bottom"><a class="el" href="classDSIGSignature.html#z46_4">getErrMsgs</a> (void)</td></tr>
<tr><td class="mdescLeft"> </td><td class="mdescRight">Get the Error messages from the last <a class="el" href="classDSIGSignature.html#z44_0">verify</a>. <a href="#z46_4"></a><br></td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top">const XMLCh * </td><td class="memItemRight" valign="bottom"><a class="el" href="classDSIGSignature.html#z46_5">getDSIGNSPrefix</a> ()</td></tr>
<tr><td class="mdescLeft"> </td><td class="mdescRight">Get the NS Prefix being used for DSIG elements. <a href="#z46_5"></a><br></td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top">const XMLCh * </td><td class="memItemRight" valign="bottom"><a class="el" href="classDSIGSignature.html#z46_6">getECNSPrefix</a> ()</td></tr>
<tr><td class="mdescLeft"> </td><td class="mdescRight">Get the NS being used for EC nodes. <a href="#z46_6"></a><br></td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top">const XMLCh * </td><td class="memItemRight" valign="bottom"><a class="el" href="classDSIGSignature.html#z46_7">getXPFNSPrefix</a> ()</td></tr>
<tr><td class="mdescLeft"> </td><td class="mdescRight">Get the NS being used for XPath Filter2 nodes. <a href="#z46_7"></a><br></td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top">XERCES_CPP_NAMESPACE_QUALIFIER <br>
DOMDocument * </td><td class="memItemRight" valign="bottom"><a class="el" href="classDSIGSignature.html#z46_8">getParentDocument</a> ()</td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="el" href="DSIGConstants_8hpp.html#a102">canonicalizationMethod</a> </td><td class="memItemRight" valign="bottom"><a class="el" href="classDSIGSignature.html#z46_9">getCanonicalizationMethod</a> (void)</td></tr>
<tr><td class="mdescLeft"> </td><td class="mdescRight">Get canonicalisation algorithm. <a href="#z46_9"></a><br></td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="el" href="DSIGConstants_8hpp.html#a104">hashMethod</a> </td><td class="memItemRight" valign="bottom"><a class="el" href="classDSIGSignature.html#z46_10">getHashMethod</a> (void)</td></tr>
<tr><td class="mdescLeft"> </td><td class="mdescRight">Get the hash method. <a href="#z46_10"></a><br></td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="el" href="DSIGConstants_8hpp.html#a103">signatureMethod</a> </td><td class="memItemRight" valign="bottom"><a class="el" href="classDSIGSignature.html#z46_11">getSignatureMethod</a> (void)</td></tr>
<tr><td class="mdescLeft"> </td><td class="mdescRight">Get the signature method. <a href="#z46_11"></a><br></td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top">const XMLCh * </td><td class="memItemRight" valign="bottom"><a class="el" href="classDSIGSignature.html#z46_12">getSignatureValue</a> (void) const </td></tr>
<tr><td class="mdescLeft"> </td><td class="mdescRight">Get the Signature Value. <a href="#z46_12"></a><br></td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="el" href="classXSECSafeBufferFormatter.html">XSECSafeBufferFormatter</a> * </td><td class="memItemRight" valign="bottom"><a class="el" href="classDSIGSignature.html#z46_13">getSBFormatter</a> (void)</td></tr>
<tr><td class="mdescLeft"> </td><td class="mdescRight">Helper function for sub Classes. <a href="#z46_13"></a><br></td></tr>
<tr><td colspan="2"><div class="groupHeader">Resolver manipulation</div></td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top">void </td><td class="memItemRight" valign="bottom"><a class="el" href="classDSIGSignature.html#z47_0">setURIResolver</a> (<a class="el" href="classXSECURIResolver.html">XSECURIResolver</a> *resolver)</td></tr>
<tr><td class="mdescLeft"> </td><td class="mdescRight">Register a URIResolver. <a href="#z47_0"></a><br></td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="el" href="classXSECURIResolver.html">XSECURIResolver</a> * </td><td class="memItemRight" valign="bottom"><a class="el" href="classDSIGSignature.html#z47_1">getURIResolver</a> (void)</td></tr>
<tr><td class="mdescLeft"> </td><td class="mdescRight">Return a pointer to the resolver being used. <a href="#z47_1"></a><br></td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top">void </td><td class="memItemRight" valign="bottom"><a class="el" href="classDSIGSignature.html#z47_2">setKeyInfoResolver</a> (<a class="el" href="classXSECKeyInfoResolver.html">XSECKeyInfoResolver</a> *resolver)</td></tr>
<tr><td class="mdescLeft"> </td><td class="mdescRight">Register a KeyInfoResolver. <a href="#z47_2"></a><br></td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="el" href="classXSECKeyInfoResolver.html">XSECKeyInfoResolver</a> * </td><td class="memItemRight" valign="bottom"><a class="el" href="classDSIGSignature.html#z47_3">getKeyInfoResolver</a> (void)</td></tr>
<tr><td class="mdescLeft"> </td><td class="mdescRight">Return a pointer to the resolver being used. <a href="#z47_3"></a><br></td></tr>
<tr><td colspan="2"><div class="groupHeader">KeyInfo Element Manipulation</div></td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="el" href="classDSIGKeyInfoList.html">DSIGKeyInfoList</a> * </td><td class="memItemRight" valign="bottom"><a class="el" href="classDSIGSignature.html#z48_0">getKeyInfoList</a> ()</td></tr>
<tr><td class="mdescLeft"> </td><td class="mdescRight">Get the list of <KeyInfo> elements. <a href="#z48_0"></a><br></td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top">void </td><td class="memItemRight" valign="bottom"><a class="el" href="classDSIGSignature.html#z48_1">clearKeyInfo</a> (void)</td></tr>
<tr><td class="mdescLeft"> </td><td class="mdescRight">Clear out all KeyInfo elements in the signature. <a href="#z48_1"></a><br></td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="el" href="classDSIGKeyInfoValue.html">DSIGKeyInfoValue</a> * </td><td class="memItemRight" valign="bottom"><a class="el" href="classDSIGSignature.html#z48_2">appendDSAKeyValue</a> (const XMLCh *P, const XMLCh *Q, const XMLCh *G, const XMLCh *Y)</td></tr>
<tr><td class="mdescLeft"> </td><td class="mdescRight">Append a DSA KeyValue element. <a href="#z48_2"></a><br></td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="el" href="classDSIGKeyInfoValue.html">DSIGKeyInfoValue</a> * </td><td class="memItemRight" valign="bottom"><a class="el" href="classDSIGSignature.html#z48_3">appendRSAKeyValue</a> (const XMLCh *modulus, const XMLCh *exponent)</td></tr>
<tr><td class="mdescLeft"> </td><td class="mdescRight">Append a RSA KeyValue element. <a href="#z48_3"></a><br></td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="el" href="classDSIGKeyInfoX509.html">DSIGKeyInfoX509</a> * </td><td class="memItemRight" valign="bottom"><a class="el" href="classDSIGSignature.html#z48_4">appendX509Data</a> (void)</td></tr>
<tr><td class="mdescLeft"> </td><td class="mdescRight">Append a X509Data element. <a href="#z48_4"></a><br></td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="el" href="classDSIGKeyInfoName.html">DSIGKeyInfoName</a> * </td><td class="memItemRight" valign="bottom"><a class="el" href="classDSIGSignature.html#z48_5">appendKeyName</a> (const XMLCh *name, bool isDName=false)</td></tr>
<tr><td class="mdescLeft"> </td><td class="mdescRight">Append a KeyName element. <a href="#z48_5"></a><br></td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="el" href="classDSIGKeyInfoPGPData.html">DSIGKeyInfoPGPData</a> * </td><td class="memItemRight" valign="bottom"><a class="el" href="classDSIGSignature.html#z48_6">appendPGPData</a> (const XMLCh *id, const XMLCh *packet)</td></tr>
<tr><td class="mdescLeft"> </td><td class="mdescRight">Append a PGPData element. <a href="#z48_6"></a><br></td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="el" href="classDSIGKeyInfoSPKIData.html">DSIGKeyInfoSPKIData</a> * </td><td class="memItemRight" valign="bottom"><a class="el" href="classDSIGSignature.html#z48_7">appendSPKIData</a> (const XMLCh *sexp)</td></tr>
<tr><td class="mdescLeft"> </td><td class="mdescRight">Append a SPKIData element. <a href="#z48_7"></a><br></td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="el" href="classDSIGKeyInfoMgmtData.html">DSIGKeyInfoMgmtData</a> * </td><td class="memItemRight" valign="bottom"><a class="el" href="classDSIGSignature.html#z48_8">appendMgmtData</a> (const XMLCh *data)</td></tr>
<tr><td class="mdescLeft"> </td><td class="mdescRight">Append a MgmtData element. <a href="#z48_8"></a><br></td></tr>
<tr><td colspan="2"><div class="groupHeader">Object handling</div></td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="el" href="classDSIGObject.html">DSIGObject</a> * </td><td class="memItemRight" valign="bottom"><a class="el" href="classDSIGSignature.html#z49_0">appendObject</a> (void)</td></tr>
<tr><td class="mdescLeft"> </td><td class="mdescRight">Append an object container. <a href="#z49_0"></a><br></td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top">int </td><td class="memItemRight" valign="bottom"><a class="el" href="classDSIGSignature.html#z49_1">getObjectLength</a> (void)</td></tr>
<tr><td class="mdescLeft"> </td><td class="mdescRight">Find the number of ds:Object nodes within the Signature. <a href="#z49_1"></a><br></td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="el" href="classDSIGObject.html">DSIGObject</a> * </td><td class="memItemRight" valign="bottom"><a class="el" href="classDSIGSignature.html#z49_2">getObjectItem</a> (int i)</td></tr>
<tr><td class="mdescLeft"> </td><td class="mdescRight">Get a particular ds:Object from within the Signature. <a href="#z49_2"></a><br></td></tr>
<tr><td colspan="2"><div class="groupHeader">ID handling</div></td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top">void </td><td class="memItemRight" valign="bottom"><a class="el" href="classDSIGSignature.html#z50_0">setIdByAttributeName</a> (bool flag)</td></tr>
<tr><td class="mdescLeft"> </td><td class="mdescRight">Set Id finding behaviour. <a href="#z50_0"></a><br></td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top">bool </td><td class="memItemRight" valign="bottom"><a class="el" href="classDSIGSignature.html#z50_1">getIdByAttributeName</a> (void)</td></tr>
<tr><td class="mdescLeft"> </td><td class="mdescRight">Determine Id finding behaviour. <a href="#z50_1"></a><br></td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top">void </td><td class="memItemRight" valign="bottom"><a class="el" href="classDSIGSignature.html#z50_2">registerIdAttributeName</a> (const XMLCh *name)</td></tr>
<tr><td class="mdescLeft"> </td><td class="mdescRight">Add an attribute name to be searched for when looking for Id attributes. <a href="#z50_2"></a><br></td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top">bool </td><td class="memItemRight" valign="bottom"><a class="el" href="classDSIGSignature.html#z50_3">deregisterIdAttributeName</a> (const XMLCh *name)</td></tr>
<tr><td class="mdescLeft"> </td><td class="mdescRight">Remove an attribute name to be searched for when looking for Id attributes. <a href="#z50_3"></a><br></td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top">void </td><td class="memItemRight" valign="bottom"><a class="el" href="classDSIGSignature.html#z50_4">registerIdAttributeNameNS</a> (const XMLCh *ns, const XMLCh *name)</td></tr>
<tr><td class="mdescLeft"> </td><td class="mdescRight">Add an attribute name within a particular Namespace to be searched for when looking for Id attributes. <a href="#z50_4"></a><br></td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top">bool </td><td class="memItemRight" valign="bottom"><a class="el" href="classDSIGSignature.html#z50_5">deregisterIdAttributeNameNS</a> (const XMLCh *ns, const XMLCh *name)</td></tr>
<tr><td class="mdescLeft"> </td><td class="mdescRight">Remove an attribute name and ns to be searched for when looking for Id attributes. <a href="#z50_5"></a><br></td></tr>
<tr><td colspan="2"><br><h2>Protected Member Functions</h2></td></tr>
<tr><td colspan="2"><div class="groupHeader">Constructors and Destructors</div></td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top"> </td><td class="memItemRight" valign="bottom"><a class="el" href="classDSIGSignature.html#z42_0">DSIGSignature</a> (XERCES_CPP_NAMESPACE_QUALIFIER DOMDocument *doc, XERCES_CPP_NAMESPACE_QUALIFIER DOMNode *sigNode)</td></tr>
<tr><td class="mdescLeft"> </td><td class="mdescRight">Contructor for use with existing XML signatures or templates. <a href="#z42_0"></a><br></td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top"> </td><td class="memItemRight" valign="bottom"><a class="el" href="classDSIGSignature.html#z42_1">~DSIGSignature</a> ()</td></tr>
<tr><td colspan="2"><br><h2>Friends</h2></td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top">class </td><td class="memItemRight" valign="bottom"><a class="el" href="classDSIGSignature.html#n0">XSECProvider</a></td></tr>
</table>
<hr><h2>Constructor & Destructor Documentation</h2>
<a class="anchor" name="z42_0" doxytag="DSIGSignature::DSIGSignature"></a><p>
<table class="mdTable" cellpadding="2" cellspacing="0">
<tr>
<td class="mdRow">
<table cellpadding="0" cellspacing="0" border="0">
<tr>
<td class="md" nowrap valign="top">DSIGSignature::DSIGSignature </td>
<td class="md" valign="top">( </td>
<td class="md" nowrap valign="top">XERCES_CPP_NAMESPACE_QUALIFIER DOMDocument * </td>
<td class="mdname" nowrap> <em>doc</em>, </td>
</tr>
<tr>
<td class="md" nowrap align="right"></td>
<td class="md"></td>
<td class="md" nowrap>XERCES_CPP_NAMESPACE_QUALIFIER DOMNode * </td>
<td class="mdname" nowrap> <em>sigNode</em></td>
</tr>
<tr>
<td class="md"></td>
<td class="md">) </td>
<td class="md" colspan="2"><code> [protected]</code></td>
</tr>
</table>
</td>
</tr>
</table>
<table cellspacing="5" cellpadding="0" border="0">
<tr>
<td>
</td>
<td>
<p>
Contructor for use with existing XML signatures or templates.
<p>
Create a DSIGSignature object based on an already existing DSIG Signature XML node. It is assumed that the underlying DOM structure is in place and works correctly.<p>
It is required that the caller pass in the signature DOM Node as there may be more than one signature in a document. The caller needs to specify which signature tree is to be used.<p>
<dl compact><dt><b>Parameters:</b></dt><dd>
<table border="0" cellspacing="2" cellpadding="0">
<tr><td valign="top"></td><td valign="top"><em>doc</em> </td><td>The DOM document node in which the signature is embedded. </td></tr>
<tr><td valign="top"></td><td valign="top"><em>sigNode</em> </td><td>The DOM node (within doc) that is to be used as the base of the signature. </td></tr>
</table>
</dl>
<dl compact><dt><b>See also:</b></dt><dd><a class="el" href="classDSIGSignature.html#z43_0">load</a> </dd></dl>
</td>
</tr>
</table>
<a class="anchor" name="z42_1" doxytag="DSIGSignature::~DSIGSignature"></a><p>
<table class="mdTable" cellpadding="2" cellspacing="0">
<tr>
<td class="mdRow">
<table cellpadding="0" cellspacing="0" border="0">
<tr>
<td class="md" nowrap valign="top">DSIGSignature::~DSIGSignature </td>
<td class="md" valign="top">( </td>
<td class="mdname1" valign="top" nowrap> </td>
<td class="md" valign="top"> ) </td>
<td class="md" nowrap><code> [protected]</code></td>
</tr>
</table>
</td>
</tr>
</table>
<table cellspacing="5" cellpadding="0" border="0">
<tr>
<td>
</td>
<td>
<p>
</td>
</tr>
</table>
<hr><h2>Member Function Documentation</h2>
<a class="anchor" name="z48_2" doxytag="DSIGSignature::appendDSAKeyValue"></a><p>
<table class="mdTable" cellpadding="2" cellspacing="0">
<tr>
<td class="mdRow">
<table cellpadding="0" cellspacing="0" border="0">
<tr>
<td class="md" nowrap valign="top"><a class="el" href="classDSIGKeyInfoValue.html">DSIGKeyInfoValue</a>* DSIGSignature::appendDSAKeyValue </td>
<td class="md" valign="top">( </td>
<td class="md" nowrap valign="top">const XMLCh * </td>
<td class="mdname" nowrap> <em>P</em>, </td>
</tr>
<tr>
<td class="md" nowrap align="right"></td>
<td class="md"></td>
<td class="md" nowrap>const XMLCh * </td>
<td class="mdname" nowrap> <em>Q</em>, </td>
</tr>
<tr>
<td class="md" nowrap align="right"></td>
<td class="md"></td>
<td class="md" nowrap>const XMLCh * </td>
<td class="mdname" nowrap> <em>G</em>, </td>
</tr>
<tr>
<td class="md" nowrap align="right"></td>
<td class="md"></td>
<td class="md" nowrap>const XMLCh * </td>
<td class="mdname" nowrap> <em>Y</em></td>
</tr>
<tr>
<td class="md"></td>
<td class="md">) </td>
<td class="md" colspan="2"></td>
</tr>
</table>
</td>
</tr>
</table>
<table cellspacing="5" cellpadding="0" border="0">
<tr>
<td>
</td>
<td>
<p>
Append a DSA KeyValue element.
<p>
Add a new KeyInfo element for a DSA Value<p>
<dl compact><dt><b>Parameters:</b></dt><dd>
<table border="0" cellspacing="2" cellpadding="0">
<tr><td valign="top"></td><td valign="top"><em>P</em> </td><td>Base64 encoded value of P </td></tr>
<tr><td valign="top"></td><td valign="top"><em>Q</em> </td><td>Base64 encoded value of Q </td></tr>
<tr><td valign="top"></td><td valign="top"><em>G</em> </td><td>Base64 encoded value of G </td></tr>
<tr><td valign="top"></td><td valign="top"><em>Y</em> </td><td>Base64 encoded value of Y </td></tr>
</table>
</dl>
<dl compact><dt><b>Returns:</b></dt><dd>A pointer to the created object. </dd></dl>
</td>
</tr>
</table>
<a class="anchor" name="z48_5" doxytag="DSIGSignature::appendKeyName"></a><p>
<table class="mdTable" cellpadding="2" cellspacing="0">
<tr>
<td class="mdRow">
<table cellpadding="0" cellspacing="0" border="0">
<tr>
<td class="md" nowrap valign="top"><a class="el" href="classDSIGKeyInfoName.html">DSIGKeyInfoName</a>* DSIGSignature::appendKeyName </td>
<td class="md" valign="top">( </td>
<td class="md" nowrap valign="top">const XMLCh * </td>
<td class="mdname" nowrap> <em>name</em>, </td>
</tr>
<tr>
<td class="md" nowrap align="right"></td>
<td class="md"></td>
<td class="md" nowrap>bool </td>
<td class="mdname" nowrap> <em>isDName</em> = <code>false</code></td>
</tr>
<tr>
<td class="md"></td>
<td class="md">) </td>
<td class="md" colspan="2"></td>
</tr>
</table>
</td>
</tr>
</table>
<table cellspacing="5" cellpadding="0" border="0">
<tr>
<td>
</td>
<td>
<p>
Append a KeyName element.
<p>
Add a new KeyInfo element for a key name.<p>
<dl compact><dt><b>Parameters:</b></dt><dd>
<table border="0" cellspacing="2" cellpadding="0">
<tr><td valign="top"></td><td valign="top"><em>name</em> </td><td>The name of the key to set in the XML </td></tr>
<tr><td valign="top"></td><td valign="top"><em>isDName</em> </td><td>Treat the name as a Distinguished name and encode accordingly </td></tr>
</table>
</dl>
<dl compact><dt><b>Returns:</b></dt><dd>A pointer to the created object </dd></dl>
</td>
</tr>
</table>
<a class="anchor" name="z48_8" doxytag="DSIGSignature::appendMgmtData"></a><p>
<table class="mdTable" cellpadding="2" cellspacing="0">
<tr>
<td class="mdRow">
<table cellpadding="0" cellspacing="0" border="0">
<tr>
<td class="md" nowrap valign="top"><a class="el" href="classDSIGKeyInfoMgmtData.html">DSIGKeyInfoMgmtData</a>* DSIGSignature::appendMgmtData </td>
<td class="md" valign="top">( </td>
<td class="md" nowrap valign="top">const XMLCh * </td>
<td class="mdname1" valign="top" nowrap> <em>data</em> </td>
<td class="md" valign="top"> ) </td>
<td class="md" nowrap></td>
</tr>
</table>
</td>
</tr>
</table>
<table cellspacing="5" cellpadding="0" border="0">
<tr>
<td>
</td>
<td>
<p>
Append a MgmtData element.
<p>
Add a new KeyInfo element for Management Data<p>
<dl compact><dt><b>Parameters:</b></dt><dd>
<table border="0" cellspacing="2" cellpadding="0">
<tr><td valign="top"></td><td valign="top"><em>data</em> </td><td>The string to set in the MgmtData element </td></tr>
</table>
</dl>
<dl compact><dt><b>Returns:</b></dt><dd>A pointer to the created object </dd></dl>
</td>
</tr>
</table>
<a class="anchor" name="z49_0" doxytag="DSIGSignature::appendObject"></a><p>
<table class="mdTable" cellpadding="2" cellspacing="0">
<tr>
<td class="mdRow">
<table cellpadding="0" cellspacing="0" border="0">
<tr>
<td class="md" nowrap valign="top"><a class="el" href="classDSIGObject.html">DSIGObject</a>* DSIGSignature::appendObject </td>
<td class="md" valign="top">( </td>
<td class="md" nowrap valign="top">void </td>
<td class="mdname1" valign="top" nowrap> </td>
<td class="md" valign="top"> ) </td>
<td class="md" nowrap></td>
</tr>
</table>
</td>
</tr>
</table>
<table cellspacing="5" cellpadding="0" border="0">
<tr>
<td>
</td>
<td>
<p>
Append an object container.
<p>
Create a new Object (i.e. a Signature <Object> which is a container element used to hold information that needs to be signed within the signature - i.e. in enveloping mode<p>
<dl compact><dt><b>Returns:</b></dt><dd>the newly created <a class="el" href="classDSIGObject.html">DSIGObject</a> </dd></dl>
</td>
</tr>
</table>
<a class="anchor" name="z48_6" doxytag="DSIGSignature::appendPGPData"></a><p>
<table class="mdTable" cellpadding="2" cellspacing="0">
<tr>
<td class="mdRow">
<table cellpadding="0" cellspacing="0" border="0">
<tr>
<td class="md" nowrap valign="top"><a class="el" href="classDSIGKeyInfoPGPData.html">DSIGKeyInfoPGPData</a>* DSIGSignature::appendPGPData </td>
<td class="md" valign="top">( </td>
<td class="md" nowrap valign="top">const XMLCh * </td>
<td class="mdname" nowrap> <em>id</em>, </td>
</tr>
<tr>
<td class="md" nowrap align="right"></td>
<td class="md"></td>
<td class="md" nowrap>const XMLCh * </td>
<td class="mdname" nowrap> <em>packet</em></td>
</tr>
<tr>
<td class="md"></td>
<td class="md">) </td>
<td class="md" colspan="2"></td>
</tr>
</table>
</td>
</tr>
</table>
<table cellspacing="5" cellpadding="0" border="0">
<tr>
<td>
</td>
<td>
<p>
Append a PGPData element.
<p>
Add a new KeyInfo element for a PGP key.<p>
<dl compact><dt><b>Parameters:</b></dt><dd>
<table border="0" cellspacing="2" cellpadding="0">
<tr><td valign="top"></td><td valign="top"><em>id</em> </td><td>The ID of the key to set in the XML (base64 encoded - NULL if none) </td></tr>
<tr><td valign="top"></td><td valign="top"><em>packet</em> </td><td>The Packet information to set in the XML (base64 encoded - NULL if none) </td></tr>
</table>
</dl>
<dl compact><dt><b>Returns:</b></dt><dd>A pointer to the created object </dd></dl>
</td>
</tr>
</table>
<a class="anchor" name="z48_3" doxytag="DSIGSignature::appendRSAKeyValue"></a><p>
<table class="mdTable" cellpadding="2" cellspacing="0">
<tr>
<td class="mdRow">
<table cellpadding="0" cellspacing="0" border="0">
<tr>
<td class="md" nowrap valign="top"><a class="el" href="classDSIGKeyInfoValue.html">DSIGKeyInfoValue</a>* DSIGSignature::appendRSAKeyValue </td>
<td class="md" valign="top">( </td>
<td class="md" nowrap valign="top">const XMLCh * </td>
<td class="mdname" nowrap> <em>modulus</em>, </td>
</tr>
<tr>
<td class="md" nowrap align="right"></td>
<td class="md"></td>
<td class="md" nowrap>const XMLCh * </td>
<td class="mdname" nowrap> <em>exponent</em></td>
</tr>
<tr>
<td class="md"></td>
<td class="md">) </td>
<td class="md" colspan="2"></td>
</tr>
</table>
</td>
</tr>
</table>
<table cellspacing="5" cellpadding="0" border="0">
<tr>
<td>
</td>
<td>
<p>
Append a RSA KeyValue element.
<p>
Add a new KeyInfo element for a RSA Value<p>
<dl compact><dt><b>Parameters:</b></dt><dd>
<table border="0" cellspacing="2" cellpadding="0">
<tr><td valign="top"></td><td valign="top"><em>modulus</em> </td><td>Base64 encoded value of the modulus </td></tr>
<tr><td valign="top"></td><td valign="top"><em>exponent</em> </td><td>Base64 encoded value of exponent </td></tr>
</table>
</dl>
<dl compact><dt><b>Returns:</b></dt><dd>A pointer to the created object. </dd></dl>
</td>
</tr>
</table>
<a class="anchor" name="z48_7" doxytag="DSIGSignature::appendSPKIData"></a><p>
<table class="mdTable" cellpadding="2" cellspacing="0">
<tr>
<td class="mdRow">
<table cellpadding="0" cellspacing="0" border="0">
<tr>
<td class="md" nowrap valign="top"><a class="el" href="classDSIGKeyInfoSPKIData.html">DSIGKeyInfoSPKIData</a>* DSIGSignature::appendSPKIData </td>
<td class="md" valign="top">( </td>
<td class="md" nowrap valign="top">const XMLCh * </td>
<td class="mdname1" valign="top" nowrap> <em>sexp</em> </td>
<td class="md" valign="top"> ) </td>
<td class="md" nowrap></td>
</tr>
</table>
</td>
</tr>
</table>
<table cellspacing="5" cellpadding="0" border="0">
<tr>
<td>
</td>
<td>
<p>
Append a SPKIData element.
<p>
Add a new KeyInfo element for a set of SPKI S-expressions<p>
<dl compact><dt><b>Parameters:</b></dt><dd>
<table border="0" cellspacing="2" cellpadding="0">
<tr><td valign="top"></td><td valign="top"><em>sexp</em> </td><td>The initial S-expression to set in the SPKIData element </td></tr>
</table>
</dl>
<dl compact><dt><b>Returns:</b></dt><dd>A pointer to the created object </dd></dl>
</td>
</tr>
</table>
<a class="anchor" name="z48_4" doxytag="DSIGSignature::appendX509Data"></a><p>
<table class="mdTable" cellpadding="2" cellspacing="0">
<tr>
<td class="mdRow">
<table cellpadding="0" cellspacing="0" border="0">
<tr>
<td class="md" nowrap valign="top"><a class="el" href="classDSIGKeyInfoX509.html">DSIGKeyInfoX509</a>* DSIGSignature::appendX509Data </td>
<td class="md" valign="top">( </td>
<td class="md" nowrap valign="top">void </td>
<td class="mdname1" valign="top" nowrap> </td>
<td class="md" valign="top"> ) </td>
<td class="md" nowrap></td>
</tr>
</table>
</td>
</tr>
</table>
<table cellspacing="5" cellpadding="0" border="0">
<tr>
<td>
</td>
<td>
<p>
Append a X509Data element.
<p>
Add a new KeyInfo element for X509 data.<p>
<dl compact><dt><b>Note:</b></dt><dd>The added element is empty. The caller must make use of the returned object to set the required values.</dd></dl>
<dl compact><dt><b>Returns:</b></dt><dd>A pointer to the created object. </dd></dl>
</td>
</tr>
</table>
<a class="anchor" name="z46_0" doxytag="DSIGSignature::calculateSignedInfoAndReferenceHash"></a><p>
<table class="mdTable" cellpadding="2" cellspacing="0">
<tr>
<td class="mdRow">
<table cellpadding="0" cellspacing="0" border="0">
<tr>
<td class="md" nowrap valign="top">unsigned int DSIGSignature::calculateSignedInfoAndReferenceHash </td>
<td class="md" valign="top">( </td>
<td class="md" nowrap valign="top">unsigned char * </td>
<td class="mdname" nowrap> <em>hashBuf</em>, </td>
</tr>
<tr>
<td class="md" nowrap align="right"></td>
<td class="md"></td>
<td class="md" nowrap>unsigned int </td>
<td class="mdname" nowrap> <em>hashBufLen</em></td>
</tr>
<tr>
<td class="md"></td>
<td class="md">) </td>
<td class="md" colspan="2"></td>
</tr>
</table>
</td>
</tr>
</table>
<table cellspacing="5" cellpadding="0" border="0">
<tr>
<td>
</td>
<td>
<p>
Get the hash of the Signed Value.
<p>
Function to calculate and return the hash of the <SignedInfo> structures (after the canonicalization defined by <CanonicalizationMethod> and the reference hashes have been performed).<p>
<dl compact><dt><b>Parameters:</b></dt><dd>
<table border="0" cellspacing="2" cellpadding="0">
<tr><td valign="top"></td><td valign="top"><em>hashBuf</em> </td><td>Buffer to place the raw hash in. </td></tr>
<tr><td valign="top"></td><td valign="top"><em>hashBufLen</em> </td><td>The length of the buffer </td></tr>
</table>
</dl>
<dl compact><dt><b>Returns:</b></dt><dd>The length of the hash that was placed in hashBuf </dd></dl>
</td>
</tr>
</table>
<a class="anchor" name="z46_1" doxytag="DSIGSignature::calculateSignedInfoHash"></a><p>
<table class="mdTable" cellpadding="2" cellspacing="0">
<tr>
<td class="mdRow">
<table cellpadding="0" cellspacing="0" border="0">
<tr>
<td class="md" nowrap valign="top">unsigned int DSIGSignature::calculateSignedInfoHash </td>
<td class="md" valign="top">( </td>
<td class="md" nowrap valign="top">unsigned char * </td>
<td class="mdname" nowrap> <em>hashBuf</em>, </td>
</tr>
<tr>
<td class="md" nowrap align="right"></td>
<td class="md"></td>
<td class="md" nowrap>unsigned int </td>
<td class="mdname" nowrap> <em>hashBufLen</em></td>
</tr>
<tr>
<td class="md"></td>
<td class="md">) </td>
<td class="md" colspan="2"></td>
</tr>
</table>
</td>
</tr>
</table>
<table cellspacing="5" cellpadding="0" border="0">
<tr>
<td>
</td>
<td>
<p>
Get the hash of the Signed Value.
<p>
Function to calculate and return the hash of the <SignedInfo> structures (after the canonicalization defined by <CanonicalizationMethod> has been performed).<p>
<dl compact><dt><b>Parameters:</b></dt><dd>
<table border="0" cellspacing="2" cellpadding="0">
<tr><td valign="top"></td><td valign="top"><em>hashBuf</em> </td><td>Buffer to place the raw hash in. </td></tr>
<tr><td valign="top"></td><td valign="top"><em>hashBufLen</em> </td><td>The length of the buffer </td></tr>
</table>
</dl>
<dl compact><dt><b>Returns:</b></dt><dd>The length of the hash that was placed in hashBuf </dd></dl>
</td>
</tr>
</table>
<a class="anchor" name="z48_1" doxytag="DSIGSignature::clearKeyInfo"></a><p>
<table class="mdTable" cellpadding="2" cellspacing="0">
<tr>
<td class="mdRow">
<table cellpadding="0" cellspacing="0" border="0">
<tr>
<td class="md" nowrap valign="top">void DSIGSignature::clearKeyInfo </td>
<td class="md" valign="top">( </td>
<td class="md" nowrap valign="top">void </td>
<td class="mdname1" valign="top" nowrap> </td>
<td class="md" valign="top"> ) </td>
<td class="md" nowrap></td>
</tr>
</table>
</td>
</tr>
</table>
<table cellspacing="5" cellpadding="0" border="0">
<tr>
<td>
</td>
<td>
<p>
Clear out all KeyInfo elements in the signature.
<p>
This function will delete all KeyInfo elements from both the DSIGSignature object <em>and the associated DOM</em>. </td>
</tr>
</table>
<a class="anchor" name="z45_5" doxytag="DSIGSignature::createBlankSignature"></a><p>
<table class="mdTable" cellpadding="2" cellspacing="0">
<tr>
<td class="mdRow">
<table cellpadding="0" cellspacing="0" border="0">
<tr>
<td class="md" nowrap valign="top">XERCES_CPP_NAMESPACE_QUALIFIER DOMElement* DSIGSignature::createBlankSignature </td>
<td class="md" valign="top">( </td>
<td class="md" nowrap valign="top">XERCES_CPP_NAMESPACE_QUALIFIER DOMDocument * </td>
<td class="mdname" nowrap> <em>doc</em>, </td>
</tr>
<tr>
<td class="md" nowrap align="right"></td>
<td class="md"></td>
<td class="md" nowrap><a class="el" href="DSIGConstants_8hpp.html#a102">canonicalizationMethod</a> </td>
<td class="mdname" nowrap> <em>cm</em> = <code>CANON_C14N_NOC</code>, </td>
</tr>
<tr>
<td class="md" nowrap align="right"></td>
<td class="md"></td>
<td class="md" nowrap><a class="el" href="DSIGConstants_8hpp.html#a103">signatureMethod</a> </td>
<td class="mdname" nowrap> <em>sm</em> = <code>SIGNATURE_DSA</code>, </td>
</tr>
<tr>
<td class="md" nowrap align="right"></td>
<td class="md"></td>
<td class="md" nowrap><a class="el" href="DSIGConstants_8hpp.html#a104">hashMethod</a> </td>
<td class="mdname" nowrap> <em>hm</em> = <code>HASH_SHA1</code></td>
</tr>
<tr>
<td class="md"></td>
<td class="md">) </td>
<td class="md" colspan="2"></td>
</tr>
</table>
</td>
</tr>
</table>
<table cellspacing="5" cellpadding="0" border="0">
<tr>
<td>
</td>
<td>
<p>
Create a <Signature> DOM structure.
<p>
The DOM structure created is still divorced from the document. The callee needs to take the returned <Signature> Element node and insert it at the appropriate place in their document.<p>
The signature is a skeleton only. There are no references or KeyInfo elements inserted. However the DSIGSignature structures are set up with the new information, so once an element has been created and a signing key has been set, a call to <a class="el" href="classDSIGSignature.html#z44_2">sign</a> will sign appropriately.<p>
<dl compact><dt><b>Note:</b></dt><dd>The digest method (hash method) set here is for the signing function only. Different hash methods can be used for reference elements.</dd></dl>
<dl compact><dt><b>Parameters:</b></dt><dd>
<table border="0" cellspacing="2" cellpadding="0">
<tr><td valign="top"></td><td valign="top"><em>doc</em> </td><td>The document the Signature DOM structure will be inserted into. </td></tr>
<tr><td valign="top"></td><td valign="top"><em>cm</em> </td><td>The canonicalisation method to use. </td></tr>
<tr><td valign="top"></td><td valign="top"><em>sm</em> </td><td>The signature algorithm to be used. </td></tr>
<tr><td valign="top"></td><td valign="top"><em>hm</em> </td><td>The Digest function to be used for the actual signatures. </td></tr>
</table>
</dl>
<dl compact><dt><b>Returns:</b></dt><dd>The newly created <Signature> element that the caller should insert in the document. </dd></dl>
</td>
</tr>
</table>
<a class="anchor" name="z45_6" doxytag="DSIGSignature::createReference"></a><p>
<table class="mdTable" cellpadding="2" cellspacing="0">
<tr>
<td class="mdRow">
<table cellpadding="0" cellspacing="0" border="0">
<tr>
<td class="md" nowrap valign="top"><a class="el" href="classDSIGReference.html">DSIGReference</a>* DSIGSignature::createReference </td>
<td class="md" valign="top">( </td>
<td class="md" nowrap valign="top">const XMLCh * </td>
<td class="mdname" nowrap> <em>URI</em>, </td>
</tr>
<tr>
<td class="md" nowrap align="right"></td>
<td class="md"></td>
<td class="md" nowrap><a class="el" href="DSIGConstants_8hpp.html#a104">hashMethod</a> </td>
<td class="mdname" nowrap> <em>hm</em> = <code>HASH_SHA1</code>, </td>
</tr>
<tr>
<td class="md" nowrap align="right"></td>
<td class="md"></td>
<td class="md" nowrap>char * </td>
<td class="mdname" nowrap> <em>type</em> = <code>NULL</code></td>
</tr>
<tr>
<td class="md"></td>
<td class="md">) </td>
<td class="md" colspan="2"></td>
</tr>
</table>
</td>
</tr>
</table>
<table cellspacing="5" cellpadding="0" border="0">
<tr>
<td>
</td>
<td>
<p>
Add a new reference to the end of the list of <Reference> nodes.
<p>
Creates a new <a class="el" href="classDSIGReference.html">DSIGReference</a>, adds it to the list of references handled by the owning DSIGSignature and also creates the skeleton DOM structure into the document.<p>
<dl compact><dt><b>Note:</b></dt><dd>The XSEC Library currently makes very little use of <em>type</em> attributes in <Reference> Elements. However this may of use to calling applications.</dd></dl>
<dl compact><dt><b>See also:</b></dt><dd><a class="el" href="classDSIGReference.html">DSIGReference</a> </dd></dl>
<dl compact><dt><b>Parameters:</b></dt><dd>
<table border="0" cellspacing="2" cellpadding="0">
<tr><td valign="top"></td><td valign="top"><em>URI</em> </td><td>The Data that this Reference node refers to. </td></tr>
<tr><td valign="top"></td><td valign="top"><em>hm</em> </td><td>The hashing (digest) method to be used for this reference </td></tr>
<tr><td valign="top"></td><td valign="top"><em>type</em> </td><td>A "type" string (as defined in XML Signature). </td></tr>
</table>
</dl>
<dl compact><dt><b>Returns:</b></dt><dd>The newly created <a class="el" href="classDSIGReference.html">DSIGReference</a> element. </dd></dl>
</td>
</tr>
</table>
<a class="anchor" name="z50_3" doxytag="DSIGSignature::deregisterIdAttributeName"></a><p>
<table class="mdTable" cellpadding="2" cellspacing="0">
<tr>
<td class="mdRow">
<table cellpadding="0" cellspacing="0" border="0">
<tr>
<td class="md" nowrap valign="top">bool DSIGSignature::deregisterIdAttributeName </td>
<td class="md" valign="top">( </td>
<td class="md" nowrap valign="top">const XMLCh * </td>
<td class="mdname1" valign="top" nowrap> <em>name</em> </td>
<td class="md" valign="top"> ) </td>
<td class="md" nowrap></td>
</tr>
</table>
</td>
</tr>
</table>
<table cellspacing="5" cellpadding="0" border="0">
<tr>
<td>
</td>
<td>
<p>
Remove an attribute name to be searched for when looking for Id attributes.
<p>
This allows a user to de-register a particular name to be used to identify Id attributes.<p>
<dl compact><dt><b>Parameters:</b></dt><dd>
<table border="0" cellspacing="2" cellpadding="0">
<tr><td valign="top"></td><td valign="top"><em>name</em> </td><td>Name to remove from the list of those used to find Id attributes </td></tr>
</table>
</dl>
<dl compact><dt><b>Returns:</b></dt><dd>true if found and removed, false if was not in the list </dd></dl>
</td>
</tr>
</table>
<a class="anchor" name="z50_5" doxytag="DSIGSignature::deregisterIdAttributeNameNS"></a><p>
<table class="mdTable" cellpadding="2" cellspacing="0">
<tr>
<td class="mdRow">
<table cellpadding="0" cellspacing="0" border="0">
<tr>
<td class="md" nowrap valign="top">bool DSIGSignature::deregisterIdAttributeNameNS </td>
<td class="md" valign="top">( </td>
<td class="md" nowrap valign="top">const XMLCh * </td>
<td class="mdname" nowrap> <em>ns</em>, </td>
</tr>
<tr>
<td class="md" nowrap align="right"></td>
<td class="md"></td>
<td class="md" nowrap>const XMLCh * </td>
<td class="mdname" nowrap> <em>name</em></td>
</tr>
<tr>
<td class="md"></td>
<td class="md">) </td>
<td class="md" colspan="2"></td>
</tr>
</table>
</td>
</tr>
</table>
<table cellspacing="5" cellpadding="0" border="0">
<tr>
<td>
</td>
<td>
<p>
Remove an attribute name and ns to be searched for when looking for Id attributes.
<p>
This allows a user to de-register a particular name to be used to identify Id attributes.<p>
<dl compact><dt><b>Parameters:</b></dt><dd>
<table border="0" cellspacing="2" cellpadding="0">
<tr><td valign="top"></td><td valign="top"><em>ns</em> </td><td>Namespace in which attribute will reside </td></tr>
<tr><td valign="top"></td><td valign="top"><em>name</em> </td><td>Name to remove from the list of those used to find Id attributes </td></tr>
</table>
</dl>
<dl compact><dt><b>Returns:</b></dt><dd>true if found and removed, false if was not in the list </dd></dl>
</td>
</tr>
</table>
<a class="anchor" name="z46_9" doxytag="DSIGSignature::getCanonicalizationMethod"></a><p>
<table class="mdTable" cellpadding="2" cellspacing="0">
<tr>
<td class="mdRow">
<table cellpadding="0" cellspacing="0" border="0">
<tr>
<td class="md" nowrap valign="top"><a class="el" href="DSIGConstants_8hpp.html#a102">canonicalizationMethod</a> DSIGSignature::getCanonicalizationMethod </td>
<td class="md" valign="top">( </td>
<td class="md" nowrap valign="top">void </td>
<td class="mdname1" valign="top" nowrap> </td>
<td class="md" valign="top"> ) </td>
<td class="md" nowrap><code> [inline]</code></td>
</tr>
</table>
</td>
</tr>
</table>
<table cellspacing="5" cellpadding="0" border="0">
<tr>
<td>
</td>
<td>
<p>
Get canonicalisation algorithm.
<p>
Returns the canonicalisation algorithm that will be/is used to canonicalise the <SignedInfo> element prior to hash/sign<p>
<dl compact><dt><b>Returns:</b></dt><dd>The canonicalisation method </dd></dl>
</td>
</tr>
</table>
<a class="anchor" name="z46_5" doxytag="DSIGSignature::getDSIGNSPrefix"></a><p>
<table class="mdTable" cellpadding="2" cellspacing="0">
<tr>
<td class="mdRow">
<table cellpadding="0" cellspacing="0" border="0">
<tr>
<td class="md" nowrap valign="top">const XMLCh* DSIGSignature::getDSIGNSPrefix </td>
<td class="md" valign="top">( </td>
<td class="mdname1" valign="top" nowrap> </td>
<td class="md" valign="top"> ) </td>
<td class="md" nowrap></td>
</tr>
</table>
</td>
</tr>
</table>
<table cellspacing="5" cellpadding="0" border="0">
<tr>
<td>
</td>
<td>
<p>
Get the NS Prefix being used for DSIG elements.
<p>
<dl compact><dt><b>Returns:</b></dt><dd>A pointer to the buffer holding the prefix </dd></dl>
<dl compact><dt><b>See also:</b></dt><dd><a class="el" href="classDSIGSignature.html#z45_0">setDSIGNSPrefix</a> </dd></dl>
</td>
</tr>
</table>
<a class="anchor" name="z46_6" doxytag="DSIGSignature::getECNSPrefix"></a><p>
<table class="mdTable" cellpadding="2" cellspacing="0">
<tr>
<td class="mdRow">
<table cellpadding="0" cellspacing="0" border="0">
<tr>
<td class="md" nowrap valign="top">const XMLCh* DSIGSignature::getECNSPrefix </td>
<td class="md" valign="top">( </td>
<td class="mdname1" valign="top" nowrap> </td>
<td class="md" valign="top"> ) </td>
<td class="md" nowrap></td>
</tr>
</table>
</td>
</tr>
</table>
<table cellspacing="5" cellpadding="0" border="0">
<tr>
<td>
</td>
<td>
<p>
Get the NS being used for EC nodes.
<p>
<dl compact><dt><b>Returns:</b></dt><dd>A pointer to the buffer holding the prefix </dd></dl>
<dl compact><dt><b>See also:</b></dt><dd><a class="el" href="classDSIGSignature.html#z45_1">setECNSPrefix</a> </dd></dl>
</td>
</tr>
</table>
<a class="anchor" name="z46_4" doxytag="DSIGSignature::getErrMsgs"></a><p>
<table class="mdTable" cellpadding="2" cellspacing="0">
<tr>
<td class="mdRow">
<table cellpadding="0" cellspacing="0" border="0">
<tr>
<td class="md" nowrap valign="top">const XMLCh* DSIGSignature::getErrMsgs </td>
<td class="md" valign="top">( </td>
<td class="md" nowrap valign="top">void </td>
<td class="mdname1" valign="top" nowrap> </td>
<td class="md" valign="top"> ) </td>
<td class="md" nowrap></td>
</tr>
</table>
</td>
</tr>
</table>
<table cellspacing="5" cellpadding="0" border="0">
<tr>
<td>
</td>
<td>
<p>
Get the Error messages from the last <a class="el" href="classDSIGSignature.html#z44_0">verify</a>.
<p>
Returns a list of text error messages from the last Signature operation. Each error that occurred is in the buffer, separated by new-lines.<p>
<dl compact><dt><b>Note:</b></dt><dd>The buffer is owned by the DSIGSignature object - do not delete it</dd></dl>
<dl compact><dt><b>Returns:</b></dt><dd>A pointer to the buffer containing the error strings. </dd></dl>
</td>
</tr>
</table>
<a class="anchor" name="z46_10" doxytag="DSIGSignature::getHashMethod"></a><p>
<table class="mdTable" cellpadding="2" cellspacing="0">
<tr>
<td class="mdRow">
<table cellpadding="0" cellspacing="0" border="0">
<tr>
<td class="md" nowrap valign="top"><a class="el" href="DSIGConstants_8hpp.html#a104">hashMethod</a> DSIGSignature::getHashMethod </td>
<td class="md" valign="top">( </td>
<td class="md" nowrap valign="top">void </td>
<td class="mdname1" valign="top" nowrap> </td>
<td class="md" valign="top"> ) </td>
<td class="md" nowrap><code> [inline]</code></td>
</tr>
</table>
</td>
</tr>
</table>
<table cellspacing="5" cellpadding="0" border="0">
<tr>
<td>
</td>
<td>
<p>
Get the hash method.
<p>
Obtain the hash (digest) algorithm that is used to generate a hash of the canonicalised <SignedInfo> element.<p>
<dl compact><dt><b>Returns:</b></dt><dd>the Hash (digest) Method </dd></dl>
</td>
</tr>
</table>
<a class="anchor" name="z50_1" doxytag="DSIGSignature::getIdByAttributeName"></a><p>
<table class="mdTable" cellpadding="2" cellspacing="0">
<tr>
<td class="mdRow">
<table cellpadding="0" cellspacing="0" border="0">
<tr>
<td class="md" nowrap valign="top">bool DSIGSignature::getIdByAttributeName </td>
<td class="md" valign="top">( </td>
<td class="md" nowrap valign="top">void </td>
<td class="mdname1" valign="top" nowrap> </td>
<td class="md" valign="top"> ) </td>
<td class="md" nowrap></td>
</tr>
</table>
</td>
</tr>
</table>
<table cellspacing="5" cellpadding="0" border="0">
<tr>
<td>
</td>
<td>
<p>
Determine Id finding behaviour.
<p>
Allows a caller to determine whether the library is currently searching for Id attributes by name<p>
<dl compact><dt><b>Returns:</b></dt><dd>The value of the IdByAttributeName flag </dd></dl>
</td>
</tr>
</table>
<a class="anchor" name="z48_0" doxytag="DSIGSignature::getKeyInfoList"></a><p>
<table class="mdTable" cellpadding="2" cellspacing="0">
<tr>
<td class="mdRow">
<table cellpadding="0" cellspacing="0" border="0">
<tr>
<td class="md" nowrap valign="top"><a class="el" href="classDSIGKeyInfoList.html">DSIGKeyInfoList</a>* DSIGSignature::getKeyInfoList </td>
<td class="md" valign="top">( </td>
<td class="mdname1" valign="top" nowrap> </td>
<td class="md" valign="top"> ) </td>
<td class="md" nowrap><code> [inline]</code></td>
</tr>
</table>
</td>
</tr>
</table>
<table cellspacing="5" cellpadding="0" border="0">
<tr>
<td>
</td>
<td>
<p>
Get the list of <KeyInfo> elements.
<p>
This function recovers list that contains the KeyInfo elements read in from the DOM document.<p>
This list should be used by calling applications to determine what key is appropriate for validating (or even signing) the Signature.<p>
<dl compact><dt><b><a class="el" href="todo.html#_todo000007">Todo:</a></b></dt><dd>The KeyInfo process is very primitive. An interface needs to be created to allow application developers to install an object into the Signature that the Signature can call on to translate KeyInfo lists into a Key. <dl compact><dt><b>Returns:</b></dt><dd>A pointer to the <a class="el" href="classDSIGKeyInfoList.html">DSIGKeyInfoList</a> object held by the DSIGSignature </dd></dl>
</dd></dl>
</td>
</tr>
</table>
<a class="anchor" name="z47_3" doxytag="DSIGSignature::getKeyInfoResolver"></a><p>
<table class="mdTable" cellpadding="2" cellspacing="0">
<tr>
<td class="mdRow">
<table cellpadding="0" cellspacing="0" border="0">
<tr>
<td class="md" nowrap valign="top"><a class="el" href="classXSECKeyInfoResolver.html">XSECKeyInfoResolver</a>* DSIGSignature::getKeyInfoResolver </td>
<td class="md" valign="top">( </td>
<td class="md" nowrap valign="top">void </td>
<td class="mdname1" valign="top" nowrap> </td>
<td class="md" valign="top"> ) </td>
<td class="md" nowrap></td>
</tr>
</table>
</td>
</tr>
</table>
<table cellspacing="5" cellpadding="0" border="0">
<tr>
<td>
</td>
<td>
<p>
Return a pointer to the resolver being used.
<p>
<dl compact><dt><b>Returns:</b></dt><dd>A pointer to the KeyInfoResolver registered in this signature </dd></dl>
</td>
</tr>
</table>
<a class="anchor" name="z49_2" doxytag="DSIGSignature::getObjectItem"></a><p>
<table class="mdTable" cellpadding="2" cellspacing="0">
<tr>
<td class="mdRow">
<table cellpadding="0" cellspacing="0" border="0">
<tr>
<td class="md" nowrap valign="top"><a class="el" href="classDSIGObject.html">DSIGObject</a>* DSIGSignature::getObjectItem </td>
<td class="md" valign="top">( </td>
<td class="md" nowrap valign="top">int </td>
<td class="mdname1" valign="top" nowrap> <em>i</em> </td>
<td class="md" valign="top"> ) </td>
<td class="md" nowrap></td>
</tr>
</table>
</td>
</tr>
</table>
<table cellspacing="5" cellpadding="0" border="0">
<tr>
<td>
</td>
<td>
<p>
Get a particular ds:Object from within the Signature.
<p>
<dl compact><dt><b>Returns:</b></dt><dd>the ith Object from the list of ds:Object nodes in the signature. Items are ordered in tree order. </dd></dl>
</td>
</tr>
</table>
<a class="anchor" name="z49_1" doxytag="DSIGSignature::getObjectLength"></a><p>
<table class="mdTable" cellpadding="2" cellspacing="0">
<tr>
<td class="mdRow">
<table cellpadding="0" cellspacing="0" border="0">
<tr>
<td class="md" nowrap valign="top">int DSIGSignature::getObjectLength </td>
<td class="md" valign="top">( </td>
<td class="md" nowrap valign="top">void </td>
<td class="mdname1" valign="top" nowrap> </td>
<td class="md" valign="top"> ) </td>
<td class="md" nowrap></td>
</tr>
</table>
</td>
</tr>
</table>
<table cellspacing="5" cellpadding="0" border="0">
<tr>
<td>
</td>
<td>
<p>
Find the number of ds:Object nodes within the Signature.
<p>
<dl compact><dt><b>Returns:</b></dt><dd>the number of ds:Object nodes held in the Signature, 0 if none </dd></dl>
</td>
</tr>
</table>
<a class="anchor" name="z46_8" doxytag="DSIGSignature::getParentDocument"></a><p>
<table class="mdTable" cellpadding="2" cellspacing="0">
<tr>
<td class="mdRow">
<table cellpadding="0" cellspacing="0" border="0">
<tr>
<td class="md" nowrap valign="top">XERCES_CPP_NAMESPACE_QUALIFIER DOMDocument* DSIGSignature::getParentDocument </td>
<td class="md" valign="top">( </td>
<td class="mdname1" valign="top" nowrap> </td>
<td class="md" valign="top"> ) </td>
<td class="md" nowrap><code> [inline]</code></td>
</tr>
</table>
</td>
</tr>
</table>
<table cellspacing="5" cellpadding="0" border="0">
<tr>
<td>
</td>
<td>
<p>
Get the DOM_Document that this Signature is operating within.<p>
Mainly used by the library itself.<p>
<dl compact><dt><b>Returns:</b></dt><dd>The DOM_Document node. </dd></dl>
</td>
</tr>
</table>
<a class="anchor" name="z45_4" doxytag="DSIGSignature::getPrettyPrint"></a><p>
<table class="mdTable" cellpadding="2" cellspacing="0">
<tr>
<td class="mdRow">
<table cellpadding="0" cellspacing="0" border="0">
<tr>
<td class="md" nowrap valign="top">bool DSIGSignature::getPrettyPrint </td>
<td class="md" valign="top">( </td>
<td class="md" nowrap valign="top">void </td>
<td class="mdname1" valign="top" nowrap> </td>
<td class="md" valign="top"> ) </td>
<td class="md" nowrap></td>
</tr>
</table>
</td>
</tr>
</table>
<table cellspacing="5" cellpadding="0" border="0">
<tr>
<td>
</td>
<td>
<p>
Tell caller whether PrettyPrinting is active.
<p>
<dl compact><dt><b>Returns:</b></dt><dd>True if Pretty Printing is active, false if not </dd></dl>
</td>
</tr>
</table>
<a class="anchor" name="z46_2" doxytag="DSIGSignature::getReferenceList"></a><p>
<table class="mdTable" cellpadding="2" cellspacing="0">
<tr>
<td class="mdRow">
<table cellpadding="0" cellspacing="0" border="0">
<tr>
<td class="md" nowrap valign="top"><a class="el" href="classDSIGReferenceList.html">DSIGReferenceList</a>* DSIGSignature::getReferenceList </td>
<td class="md" valign="top">( </td>
<td class="md" nowrap valign="top">void </td>
<td class="mdname1" valign="top" nowrap> </td>
<td class="md" valign="top"> ) </td>
<td class="md" nowrap></td>
</tr>
</table>
</td>
</tr>
</table>
<table cellspacing="5" cellpadding="0" border="0">
<tr>
<td>
</td>
<td>
<p>
Return the reference list for outside use.
<p>
Returns a pointer to the list of references which can then be read by the caller.<p>
<dl compact><dt><b>Returns:</b></dt><dd>The referenceList </dd></dl>
</td>
</tr>
</table>
<a class="anchor" name="z46_13" doxytag="DSIGSignature::getSBFormatter"></a><p>
<table class="mdTable" cellpadding="2" cellspacing="0">
<tr>
<td class="mdRow">
<table cellpadding="0" cellspacing="0" border="0">
<tr>
<td class="md" nowrap valign="top"><a class="el" href="classXSECSafeBufferFormatter.html">XSECSafeBufferFormatter</a>* DSIGSignature::getSBFormatter </td>
<td class="md" valign="top">( </td>
<td class="md" nowrap valign="top">void </td>
<td class="mdname1" valign="top" nowrap> </td>
<td class="md" valign="top"> ) </td>
<td class="md" nowrap><code> [inline]</code></td>
</tr>
</table>
</td>
</tr>
</table>
<table cellspacing="5" cellpadding="0" border="0">
<tr>
<td>
</td>
<td>
<p>
Helper function for sub Classes.
<p>
Returns the pointer to the formatter being used within the Signature </td>
</tr>
</table>
<a class="anchor" name="z46_11" doxytag="DSIGSignature::getSignatureMethod"></a><p>
<table class="mdTable" cellpadding="2" cellspacing="0">
<tr>
<td class="mdRow">
<table cellpadding="0" cellspacing="0" border="0">
<tr>
<td class="md" nowrap valign="top"><a class="el" href="DSIGConstants_8hpp.html#a103">signatureMethod</a> DSIGSignature::getSignatureMethod </td>
<td class="md" valign="top">( </td>
<td class="md" nowrap valign="top">void </td>
<td class="mdname1" valign="top" nowrap> </td>
<td class="md" valign="top"> ) </td>
<td class="md" nowrap><code> [inline]</code></td>
</tr>
</table>
</td>
</tr>
</table>
<table cellspacing="5" cellpadding="0" border="0">
<tr>
<td>
</td>
<td>
<p>
Get the signature method.
<p>
Obtain the algorithm that will be used to generate/check the signature of the canonicalised and hashed <SignedInfo> element.<p>
<dl compact><dt><b>Returns:</b></dt><dd>the Signature method </dd></dl>
</td>
</tr>
</table>
<a class="anchor" name="z46_12" doxytag="DSIGSignature::getSignatureValue"></a><p>
<table class="mdTable" cellpadding="2" cellspacing="0">
<tr>
<td class="mdRow">
<table cellpadding="0" cellspacing="0" border="0">
<tr>
<td class="md" nowrap valign="top">const XMLCh* DSIGSignature::getSignatureValue </td>
<td class="md" valign="top">( </td>
<td class="md" nowrap valign="top">void </td>
<td class="mdname1" valign="top" nowrap> </td>
<td class="md" valign="top"> ) </td>
<td class="md" nowrap> const</td>
</tr>
</table>
</td>
</tr>
</table>
<table cellspacing="5" cellpadding="0" border="0">
<tr>
<td>
</td>
<td>
<p>
Get the Signature Value.
<p>
Returns the base64 string holding the signature value for this signature<p>
<dl compact><dt><b>Returns:</b></dt><dd>the signature value string </dd></dl>
</td>
</tr>
</table>
<a class="anchor" name="z47_1" doxytag="DSIGSignature::getURIResolver"></a><p>
<table class="mdTable" cellpadding="2" cellspacing="0">
<tr>
<td class="mdRow">
<table cellpadding="0" cellspacing="0" border="0">
<tr>
<td class="md" nowrap valign="top"><a class="el" href="classXSECURIResolver.html">XSECURIResolver</a>* DSIGSignature::getURIResolver </td>
<td class="md" valign="top">( </td>
<td class="md" nowrap valign="top">void </td>
<td class="mdname1" valign="top" nowrap> </td>
<td class="md" valign="top"> ) </td>
<td class="md" nowrap></td>
</tr>
</table>
</td>
</tr>
</table>
<table cellspacing="5" cellpadding="0" border="0">
<tr>
<td>
</td>
<td>
<p>
Return a pointer to the resolver being used.
<p>
<dl compact><dt><b>Returns:</b></dt><dd>A pointer to the URIResolver registered in this signature </dd></dl>
</td>
</tr>
</table>
<a class="anchor" name="z46_7" doxytag="DSIGSignature::getXPFNSPrefix"></a><p>
<table class="mdTable" cellpadding="2" cellspacing="0">
<tr>
<td class="mdRow">
<table cellpadding="0" cellspacing="0" border="0">
<tr>
<td class="md" nowrap valign="top">const XMLCh* DSIGSignature::getXPFNSPrefix </td>
<td class="md" valign="top">( </td>
<td class="mdname1" valign="top" nowrap> </td>
<td class="md" valign="top"> ) </td>
<td class="md" nowrap></td>
</tr>
</table>
</td>
</tr>
</table>
<table cellspacing="5" cellpadding="0" border="0">
<tr>
<td>
</td>
<td>
<p>
Get the NS being used for XPath Filter2 nodes.
<p>
<dl compact><dt><b>Returns:</b></dt><dd>A pointer to the buffer holding the prefix </dd></dl>
<dl compact><dt><b>See also:</b></dt><dd><a class="el" href="classDSIGSignature.html#z45_2">setXPFNSPrefix</a> </dd></dl>
</td>
</tr>
</table>
<a class="anchor" name="z43_0" doxytag="DSIGSignature::load"></a><p>
<table class="mdTable" cellpadding="2" cellspacing="0">
<tr>
<td class="mdRow">
<table cellpadding="0" cellspacing="0" border="0">
<tr>
<td class="md" nowrap valign="top">void DSIGSignature::load </td>
<td class="md" valign="top">( </td>
<td class="md" nowrap valign="top">void </td>
<td class="mdname1" valign="top" nowrap> </td>
<td class="md" valign="top"> ) </td>
<td class="md" nowrap></td>
</tr>
</table>
</td>
</tr>
</table>
<table cellspacing="5" cellpadding="0" border="0">
<tr>
<td>
</td>
<td>
<p>
Load the signature information from the DOM source.
<p>
Used to tell the DSIGSignature object to read from the DOM tree into local structures. Will throw various exceptions if it finds that the DOM structure is not in line with the XML Signature standard. </td>
</tr>
</table>
<a class="anchor" name="z46_3" doxytag="DSIGSignature::makeBinInputStream"></a><p>
<table class="mdTable" cellpadding="2" cellspacing="0">
<tr>
<td class="mdRow">
<table cellpadding="0" cellspacing="0" border="0">
<tr>
<td class="md" nowrap valign="top"><a class="el" href="classXSECBinTXFMInputStream.html">XSECBinTXFMInputStream</a>* DSIGSignature::makeBinInputStream </td>
<td class="md" valign="top">( </td>
<td class="md" nowrap valign="top">void </td>
<td class="mdname1" valign="top" nowrap> </td>
<td class="md" valign="top"> ) </td>
<td class="md" nowrap> const</td>
</tr>
</table>
</td>
</tr>
</table>
<table cellspacing="5" cellpadding="0" border="0">
<tr>
<td>
</td>
<td>
<p>
Create an input stream from SignedInfo.
<p>
This method allows applications to read the fully canonicalised byte stream that is hashed and signed.<p>
All transforms are performed up to the point where they would normally be fed into the Digest function.<p>
<dl compact><dt><b>Returns:</b></dt><dd>A BinInputSource of the canonicalised SignedInfo </dd></dl>
</td>
</tr>
</table>
<a class="anchor" name="z50_2" doxytag="DSIGSignature::registerIdAttributeName"></a><p>
<table class="mdTable" cellpadding="2" cellspacing="0">
<tr>
<td class="mdRow">
<table cellpadding="0" cellspacing="0" border="0">
<tr>
<td class="md" nowrap valign="top">void DSIGSignature::registerIdAttributeName </td>
<td class="md" valign="top">( </td>
<td class="md" nowrap valign="top">const XMLCh * </td>
<td class="mdname1" valign="top" nowrap> <em>name</em> </td>
<td class="md" valign="top"> ) </td>
<td class="md" nowrap></td>
</tr>
</table>
</td>
</tr>
</table>
<table cellspacing="5" cellpadding="0" border="0">
<tr>
<td>
</td>
<td>
<p>
Add an attribute name to be searched for when looking for Id attributes.
<p>
This allows a user to add an attribute name to be used to identify Id attributes when they are not set to be of Type=ID in the DOM<p>
<dl compact><dt><b>Note:</b></dt><dd>Two names are registered by default - "Id" and "id". These can be removed by calling deregisterIdAttributeName</dd></dl>
<dl compact><dt><b>Parameters:</b></dt><dd>
<table border="0" cellspacing="2" cellpadding="0">
<tr><td valign="top"></td><td valign="top"><em>name</em> </td><td>Name to append to the list of those used to find Id attributes </td></tr>
</table>
</dl>
</td>
</tr>
</table>
<a class="anchor" name="z50_4" doxytag="DSIGSignature::registerIdAttributeNameNS"></a><p>
<table class="mdTable" cellpadding="2" cellspacing="0">
<tr>
<td class="mdRow">
<table cellpadding="0" cellspacing="0" border="0">
<tr>
<td class="md" nowrap valign="top">void DSIGSignature::registerIdAttributeNameNS </td>
<td class="md" valign="top">( </td>
<td class="md" nowrap valign="top">const XMLCh * </td>
<td class="mdname" nowrap> <em>ns</em>, </td>
</tr>
<tr>
<td class="md" nowrap align="right"></td>
<td class="md"></td>
<td class="md" nowrap>const XMLCh * </td>
<td class="mdname" nowrap> <em>name</em></td>
</tr>
<tr>
<td class="md"></td>
<td class="md">) </td>
<td class="md" colspan="2"></td>
</tr>
</table>
</td>
</tr>
</table>
<table cellspacing="5" cellpadding="0" border="0">
<tr>
<td>
</td>
<td>
<p>
Add an attribute name within a particular Namespace to be searched for when looking for Id attributes.
<p>
This allows a user to add an attribute name to be used to identify Id attributes when they are not set to be of Type=ID in the DOM<p>
<dl compact><dt><b>Note:</b></dt><dd>Two names are registered by default - "Id" and "id". These can be removed by calling deregisterIdAttributeName</dd></dl>
<dl compact><dt><b>Parameters:</b></dt><dd>
<table border="0" cellspacing="2" cellpadding="0">
<tr><td valign="top"></td><td valign="top"><em>ns</em> </td><td>Namespace in which attribute will reside </td></tr>
<tr><td valign="top"></td><td valign="top"><em>name</em> </td><td>Name to append to the list of those used to find Id attributes </td></tr>
</table>
</dl>
</td>
</tr>
</table>
<a class="anchor" name="z45_0" doxytag="DSIGSignature::setDSIGNSPrefix"></a><p>
<table class="mdTable" cellpadding="2" cellspacing="0">
<tr>
<td class="mdRow">
<table cellpadding="0" cellspacing="0" border="0">
<tr>
<td class="md" nowrap valign="top">void DSIGSignature::setDSIGNSPrefix </td>
<td class="md" valign="top">( </td>
<td class="md" nowrap valign="top">const XMLCh * </td>
<td class="mdname1" valign="top" nowrap> <em>prefix</em> </td>
<td class="md" valign="top"> ) </td>
<td class="md" nowrap></td>
</tr>
</table>
</td>
</tr>
</table>
<table cellspacing="5" cellpadding="0" border="0">
<tr>
<td>
</td>
<td>
<p>
Set the prefix be used for the DSIG namespace.
<p>
When the XSEC library creates XML Element nodes, it uses the prefix here for all nodes created. By default, the library assumes that the default namespace is used.<p>
The <a class="el" href="classDSIGSignature.html#z45_5">createBlankSignature</a> function will use this prefix to setup the dsig namespace. E.g. (assuming a call has been made to set the prefix to "ds") the <Signature> element will have a namespace attribute added of<p>
xmlns:ds="http://www.w3.org/2000/09/xmldsig#"<p>
If no prefix has been set, this attribute will be set as the default namespace<p>
<dl compact><dt><b>See also:</b></dt><dd><a class="el" href="classDSIGSignature.html#z45_5">createBlankSignature</a> </dd></dl>
<dl compact><dt><b>Parameters:</b></dt><dd>
<table border="0" cellspacing="2" cellpadding="0">
<tr><td valign="top"></td><td valign="top"><em>prefix</em> </td><td>The UTF-16 encoided NS prefix to use for the XML Digital Signature nodes </td></tr>
</table>
</dl>
</td>
</tr>
</table>
<a class="anchor" name="z45_1" doxytag="DSIGSignature::setECNSPrefix"></a><p>
<table class="mdTable" cellpadding="2" cellspacing="0">
<tr>
<td class="mdRow">
<table cellpadding="0" cellspacing="0" border="0">
<tr>
<td class="md" nowrap valign="top">void DSIGSignature::setECNSPrefix </td>
<td class="md" valign="top">( </td>
<td class="md" nowrap valign="top">const XMLCh * </td>
<td class="mdname1" valign="top" nowrap> <em>prefix</em> </td>
<td class="md" valign="top"> ) </td>
<td class="md" nowrap></td>
</tr>
</table>
</td>
</tr>
</table>
<table cellspacing="5" cellpadding="0" border="0">
<tr>
<td>
</td>
<td>
<p>
Set the prefix be used for the Exclusive Canonicalisation namespace.
<p>
The Exclusive Canonicalisation specification defines a new namespace for the InclusiveNamespaces node. This function can be used to set the prefix that the library will use when creating nodes within this namespace.<p>
xmlns:ds="http://www.w3.org/2001/10/xml-exc-c14n#"<p>
If no prefix is set, the default namespace will be used<p>
<dl compact><dt><b>See also:</b></dt><dd><a class="el" href="classDSIGSignature.html#z45_5">createBlankSignature</a> </dd></dl>
<dl compact><dt><b>Parameters:</b></dt><dd>
<table border="0" cellspacing="2" cellpadding="0">
<tr><td valign="top"></td><td valign="top"><em>prefix</em> </td><td>The UTF-16 encoided NS prefix to use for the XML Exclusive Canonicalisation nodes </td></tr>
</table>
</dl>
</td>
</tr>
</table>
<a class="anchor" name="z50_0" doxytag="DSIGSignature::setIdByAttributeName"></a><p>
<table class="mdTable" cellpadding="2" cellspacing="0">
<tr>
<td class="mdRow">
<table cellpadding="0" cellspacing="0" border="0">
<tr>
<td class="md" nowrap valign="top">void DSIGSignature::setIdByAttributeName </td>
<td class="md" valign="top">( </td>
<td class="md" nowrap valign="top">bool </td>
<td class="mdname1" valign="top" nowrap> <em>flag</em> </td>
<td class="md" valign="top"> ) </td>
<td class="md" nowrap></td>
</tr>
</table>
</td>
</tr>
</table>
<table cellspacing="5" cellpadding="0" border="0">
<tr>
<td>
</td>
<td>
<p>
Set Id finding behaviour.
<p>
The library de-references "#obj" URI references to ID attributes within a DOM document. Currently, the library first uses DOM calls to find if the Id has been properly set within the document via the parser or one of the DOM Level 3 calls to set an Id.<p>
If no Id is found of the correct name, the library then starts searching for attributes of a given name with the required value. This list defaults to "id" and "Id", but can be modified via a call to addIdAttributeName()<p>
The setIdByAttributeName call enables or disables the second part of the Id search. I.e. when the Id doesn't exist as an attribute of Type=ID, whether or not to search for an attribute of a name in the list of names. By default this behaviour is enabled.<p>
<dl compact><dt><b>Warning:</b></dt><dd>This is currently enabled by default for backwards compatibility reasons only. Future version may reverse this and ship disabled by default, as this behaviour is a potential security risk.</dd></dl>
<dl compact><dt><b>Parameters:</b></dt><dd>
<table border="0" cellspacing="2" cellpadding="0">
<tr><td valign="top"></td><td valign="top"><em>flag</em> </td><td>Enable (true) or Disable (false) searching for Id attributes by name </td></tr>
</table>
</dl>
</td>
</tr>
</table>
<a class="anchor" name="z47_2" doxytag="DSIGSignature::setKeyInfoResolver"></a><p>
<table class="mdTable" cellpadding="2" cellspacing="0">
<tr>
<td class="mdRow">
<table cellpadding="0" cellspacing="0" border="0">
<tr>
<td class="md" nowrap valign="top">void DSIGSignature::setKeyInfoResolver </td>
<td class="md" valign="top">( </td>
<td class="md" nowrap valign="top"><a class="el" href="classXSECKeyInfoResolver.html">XSECKeyInfoResolver</a> * </td>
<td class="mdname1" valign="top" nowrap> <em>resolver</em> </td>
<td class="md" valign="top"> ) </td>
<td class="md" nowrap></td>
</tr>
</table>
</td>
</tr>
</table>
<table cellspacing="5" cellpadding="0" border="0">
<tr>
<td>
</td>
<td>
<p>
Register a KeyInfoResolver.
<p>
Registers a KeyInfoResolver to be used by the Signature when it needs to find a key to be used to validate a signature </td>
</tr>
</table>
<a class="anchor" name="z45_3" doxytag="DSIGSignature::setPrettyPrint"></a><p>
<table class="mdTable" cellpadding="2" cellspacing="0">
<tr>
<td class="mdRow">
<table cellpadding="0" cellspacing="0" border="0">
<tr>
<td class="md" nowrap valign="top">void DSIGSignature::setPrettyPrint </td>
<td class="md" valign="top">( </td>
<td class="md" nowrap valign="top">bool </td>
<td class="mdname1" valign="top" nowrap> <em>flag</em> </td>
<td class="md" valign="top"> ) </td>
<td class="md" nowrap></td>
</tr>
</table>
</td>
</tr>
</table>
<table cellspacing="5" cellpadding="0" border="0">
<tr>
<td>
</td>
<td>
<p>
Set Pretty Print.
<p>
The pretty print functions controls whether the library will output CR/LF after the elements it adds to a document<p>
By default the library will do pretty printing (flag is true)<p>
<dl compact><dt><b>Parameters:</b></dt><dd>
<table border="0" cellspacing="2" cellpadding="0">
<tr><td valign="top"></td><td valign="top"><em>flag</em> </td><td>Value to set for Pretty Printing (true = do pretty printing) </td></tr>
</table>
</dl>
</td>
</tr>
</table>
<a class="anchor" name="z43_1" doxytag="DSIGSignature::setSigningKey"></a><p>
<table class="mdTable" cellpadding="2" cellspacing="0">
<tr>
<td class="mdRow">
<table cellpadding="0" cellspacing="0" border="0">
<tr>
<td class="md" nowrap valign="top">void DSIGSignature::setSigningKey </td>
<td class="md" valign="top">( </td>
<td class="md" nowrap valign="top"><a class="el" href="classXSECCryptoKey.html">XSECCryptoKey</a> * </td>
<td class="mdname1" valign="top" nowrap> <em>k</em> </td>
<td class="md" valign="top"> ) </td>
<td class="md" nowrap></td>
</tr>
</table>
</td>
</tr>
</table>
<table cellspacing="5" cellpadding="0" border="0">
<tr>
<td>
</td>
<td>
<p>
Externally set the signing/verification key.
<p>
Used prior to a verify or sign operation to set the signature key (public or private respectively) to be used for the operation.<p>
<dl compact><dt><b>Note:</b></dt><dd>Once passed in via this call, the key is owned by the Signature. It will deleted when a new key is loaded or the signature is released.</dd></dl>
<dl compact><dt><b>See also:</b></dt><dd><a class="el" href="classDSIGSignature.html#z44_0">verify</a> <p>
<a class="el" href="classDSIGSignature.html#z44_2">sign</a> </dd></dl>
</td>
</tr>
</table>
<a class="anchor" name="z47_0" doxytag="DSIGSignature::setURIResolver"></a><p>
<table class="mdTable" cellpadding="2" cellspacing="0">
<tr>
<td class="mdRow">
<table cellpadding="0" cellspacing="0" border="0">
<tr>
<td class="md" nowrap valign="top">void DSIGSignature::setURIResolver </td>
<td class="md" valign="top">( </td>
<td class="md" nowrap valign="top"><a class="el" href="classXSECURIResolver.html">XSECURIResolver</a> * </td>
<td class="mdname1" valign="top" nowrap> <em>resolver</em> </td>
<td class="md" valign="top"> ) </td>
<td class="md" nowrap></td>
</tr>
</table>
</td>
</tr>
</table>
<table cellspacing="5" cellpadding="0" border="0">
<tr>
<td>
</td>
<td>
<p>
Register a URIResolver.
<p>
Registers a URIResolver to be used by the Signature when dereferencing a URI in a Reference element </td>
</tr>
</table>
<a class="anchor" name="z45_2" doxytag="DSIGSignature::setXPFNSPrefix"></a><p>
<table class="mdTable" cellpadding="2" cellspacing="0">
<tr>
<td class="mdRow">
<table cellpadding="0" cellspacing="0" border="0">
<tr>
<td class="md" nowrap valign="top">void DSIGSignature::setXPFNSPrefix </td>
<td class="md" valign="top">( </td>
<td class="md" nowrap valign="top">const XMLCh * </td>
<td class="mdname1" valign="top" nowrap> <em>prefix</em> </td>
<td class="md" valign="top"> ) </td>
<td class="md" nowrap></td>
</tr>
</table>
</td>
</tr>
</table>
<table cellspacing="5" cellpadding="0" border="0">
<tr>
<td>
</td>
<td>
<p>
Set the prefix be used for the XPath-Filter2 namespace.
<p>
The XPathFilter definition uses its own namespace. This method can be used to set the prefix that the library will use when creating elements in this namespace<p>
xmlns:ds="http://www.w3.org/2002/06/xmldsig-filter2"<p>
If no prefix is set, the default namespace will be used<p>
<dl compact><dt><b>See also:</b></dt><dd><a class="el" href="classDSIGSignature.html#z45_5">createBlankSignature</a> </dd></dl>
<dl compact><dt><b>Parameters:</b></dt><dd>
<table border="0" cellspacing="2" cellpadding="0">
<tr><td valign="top"></td><td valign="top"><em>prefix</em> </td><td>The UTF-16 encoided NS prefix to use for the XPath filter nodes </td></tr>
</table>
</dl>
</td>
</tr>
</table>
<a class="anchor" name="z44_2" doxytag="DSIGSignature::sign"></a><p>
<table class="mdTable" cellpadding="2" cellspacing="0">
<tr>
<td class="mdRow">
<table cellpadding="0" cellspacing="0" border="0">
<tr>
<td class="md" nowrap valign="top">void DSIGSignature::sign </td>
<td class="md" valign="top">( </td>
<td class="md" nowrap valign="top">void </td>
<td class="mdname1" valign="top" nowrap> </td>
<td class="md" valign="top"> ) </td>
<td class="md" nowrap></td>
</tr>
</table>
</td>
</tr>
</table>
<table cellspacing="5" cellpadding="0" border="0">
<tr>
<td>
</td>
<td>
<p>
Sign a DSIGSignature DOM structure.
<p>
The <a class="el" href="classDSIGSignature.html#z44_2">sign</a> function will create the reference hash values and signature value in a DOM structure previously created via a <a class="el" href="classDSIGSignature.html#z43_0">load</a> or <a class="el" href="classDSIGSignature.html#z45_5">createBlankSignature</a> call <p>
It performs the following operations : <ul>
<li>
Iterate through each reference, calculate and set the hash value; </li>
<li>
Iterate through references contained in <manifest> elements and set their values; </li>
<li>
Calculate the hash of the <SignedInfo> element; and </li>
<li>
Calculate (and set) the signature value given the hash previously calculated. </li>
</ul>
<p>
<dl compact><dt><b>Note:</b></dt><dd>The key to use for signing must have been set prior to call to sign using <a class="el" href="classDSIGSignature.html#z43_1">setSigningKey</a></dd></dl>
<dl compact><dt><b>Exceptions:</b></dt><dd>
<table border="0" cellspacing="2" cellpadding="0">
<tr><td valign="top"></td><td valign="top"><em><a class="el" href="classXSECException.html">XSECException</a></em> </td><td>(for errors during the XML formatting and loading) </td></tr>
<tr><td valign="top"></td><td valign="top"><em><a class="el" href="classXSECCryptoException.html">XSECCryptoException</a></em> </td><td>(for errors during the cryptographic operations)</td></tr>
</table>
</dl>
<dl compact><dt><b>See also:</b></dt><dd><a class="el" href="classDSIGSignature.html#z43_1">setSigningKey</a> <p>
<a class="el" href="classDSIGSignature.html#z43_0">load</a> <p>
<a class="el" href="classDSIGSignature.html#z46_4">getErrMsgs</a> </dd></dl>
</td>
</tr>
</table>
<a class="anchor" name="z44_0" doxytag="DSIGSignature::verify"></a><p>
<table class="mdTable" cellpadding="2" cellspacing="0">
<tr>
<td class="mdRow">
<table cellpadding="0" cellspacing="0" border="0">
<tr>
<td class="md" nowrap valign="top">bool DSIGSignature::verify </td>
<td class="md" valign="top">( </td>
<td class="md" nowrap valign="top">void </td>
<td class="mdname1" valign="top" nowrap> </td>
<td class="md" valign="top"> ) </td>
<td class="md" nowrap></td>
</tr>
</table>
</td>
</tr>
</table>
<table cellspacing="5" cellpadding="0" border="0">
<tr>
<td>
</td>
<td>
<p>
Verify that a signature is valid.
<p>
The <em>verify</em> function will validate the signature of an XML document previously loaded into the DSIGSignature structure via a <em>load</em>.<p>
It performs the following operations : <ul>
<li>
Iterate through each reference and validate the hash; </li>
<li>
Iterate through references contained in <manifest> elements; </li>
<li>
Calculate the hash of the <SignedInfo> element; and </li>
<li>
Validate the signature of the hash previously calculated. </li>
</ul>
<p>
<dl compact><dt><b>Returns:</b></dt><dd>true/false <ul>
<li>
<b>true</b> = Signature (and all references) validated correctly. </li>
<li>
<b>false</b> = Signature validation failed. An error list can be found via a call to <a class="el" href="classDSIGSignature.html#z46_4">getErrMsgs</a>. </li>
</ul>
</dd></dl>
<dl compact><dt><b>See also:</b></dt><dd><a class="el" href="classDSIGSignature.html#z43_0">load</a> <p>
<a class="el" href="classDSIGSignature.html#z46_4">getErrMsgs</a> </dd></dl>
</td>
</tr>
</table>
<a class="anchor" name="z44_1" doxytag="DSIGSignature::verifySignatureOnly"></a><p>
<table class="mdTable" cellpadding="2" cellspacing="0">
<tr>
<td class="mdRow">
<table cellpadding="0" cellspacing="0" border="0">
<tr>
<td class="md" nowrap valign="top">bool DSIGSignature::verifySignatureOnly </td>
<td class="md" valign="top">( </td>
<td class="md" nowrap valign="top">void </td>
<td class="mdname1" valign="top" nowrap> </td>
<td class="md" valign="top"> ) </td>
<td class="md" nowrap></td>
</tr>
</table>
</td>
</tr>
</table>
<table cellspacing="5" cellpadding="0" border="0">
<tr>
<td>
</td>
<td>
<p>
Verify a signature is valid (skip references).
<p>
This function is almost the same as <a class="el" href="classDSIGSignature.html#z44_0">verify</a> except it will skip the reference checks.<p>
<dl compact><dt><b>See also:</b></dt><dd><a class="el" href="classDSIGSignature.html#z43_0">load</a> <p>
<a class="el" href="classDSIGSignature.html#z44_0">verify</a> </dd></dl>
</td>
</tr>
</table>
<hr><h2>Friends And Related Function Documentation</h2>
<a class="anchor" name="n0" doxytag="DSIGSignature::XSECProvider"></a><p>
<table class="mdTable" cellpadding="2" cellspacing="0">
<tr>
<td class="mdRow">
<table cellpadding="0" cellspacing="0" border="0">
<tr>
<td class="md" nowrap valign="top">friend class <a class="el" href="classXSECProvider.html">XSECProvider</a><code> [friend]</code> </td>
</tr>
</table>
</td>
</tr>
</table>
<table cellspacing="5" cellpadding="0" border="0">
<tr>
<td>
</td>
<td>
<p>
</td>
</tr>
</table>
<hr>The documentation for this class was generated from the following file:<ul>
<li><a class="el" href="DSIGSignature_8hpp-source.html">DSIGSignature.hpp</a></ul>
<hr size="1"><address style="align: right;"><small>Generated on Sun Jul 3 17:41:19 2005 for XML-Security-C by
<a href="http://www.doxygen.org/index.html">
<img src="doxygen.png" alt="doxygen" align="middle" border="0"></a> 1.4.2 </small></address>
</body>
</html>
|