xml.Signature methods
Methods for the xml.Signature class.
| Name | Description | 
|---|---|
 | 
Constructor of a blank Signature object. | 
 | 
Constructor of a new Signature object from a XML Signature node, based on the XML-Signature specification. | 
| Name | Description | 
|---|---|
 | 
Returns a DomNodeList containing all embedded XML nodes related to the signature object | 
Note: 
In addition to this class method categorized under Object Access, there are also object methods. These are listed in Table 9.
| Name | Description | 
|---|---|
 | 
Defines the X509 certificate to be added to the signature object when signing a document. | 
 | 
Defines the key used for signing or validation. | 
| Name | Description | 
|---|---|
 | 
Sets the canonicalization method to use for the signature. | 
 | 
Sets an ID value for the signature. | 
| Name | Description | 
|---|---|
 | 
Returns the canonicalization identifier of the signature. | 
 | 
Returns a new DomDocument object representing the signature in XML. | 
 | 
Returns the ID value of the signature. | 
 | 
Returns the algorithm method of the signature. | 
 | 
Returns a string with the type of the signature object. | 
| Name | Description | 
|---|---|
 | 
Appends transformations related to the specified reference index. | 
 | 
Creates a new reference that will be signed with the
compute() method | 
 | 
Sets an ID for the signature reference in the specified signature object. | 
| Name | Description | 
|---|---|
 | 
Returns the number of references in this Signature object. | 
 | 
Returns the digest algorithm identifier of the reference. | 
 | 
Returns the URI of the reference in this signature object. | 
 | 
Returns the ID value of the reference in this signature object. | 
 | 
Gets the transformation identifier related to the reference of index referenceIndex. | 
 | 
Returns the number of transformations referenced in this signature object. | 
| Name | Description | 
|---|---|
 | 
Appends a copy of a XML DomNode to the signature object index. | 
 | 
Creates a new object that will embed additional XML nodes. | 
 | 
Sets an ID for the signature object. | 
| Name | Description | 
|---|---|
 | 
Returns the number of objects in this Signature object. | 
 | 
Returns the ID value of the signature object. | 
Note: 
In addition to these object methods categorized under Object Access, there is also a class method. It is listed in Table 2.
| Name | Description | 
|---|---|
 | 
Computes the signature of all references set in this Signature object. | 
 | 
Sign the passed string according to the specified key. | 
 | 
Verifies that all references in this signature object have not changed. | 
 | 
Verify the signature is consistent with the given key and the original message. |