Trees | Index | Help |
|
---|
Module xmlsec :: Class TmplSignature |
|
xmlCore
--+ |xmlNode
--+ | TmplSignature
Method Summary | |
---|---|
Creates new <dsig:Signature/> node with the mandatory <dsig:SignedInfo/>, <dsig:CanonicalizationMethod/>, <dsig:SignatureMethod/> and <dsig:SignatureValue/> children and sub-children. | |
Adds <dsig:Object/> node to the <dsig:Signature/> node. | |
Adds <dsig:Reference/> node with given URI (uri), Id (id) and Type (type) attributes and the required children <dsig:DigestMethod/> and <dsig:DigestValue/> to the <dsig:SignedInfo/> child of node. | |
Adds (if necessary) <dsig:KeyInfo/> node to the <dsig:Signature/> node. | |
Gets <dsig:CanonicalizationMethod/> child of <dsig:KeyInfo/> node. | |
Gets <dsig:SignatureMethod/> child of <dsig:KeyInfo/> node. | |
Inherited from xmlNode | |
| |
Add a new node to @parent, at the end of the child (or property) list merging adjacent TEXT nodes (in which case @cur is freed) If the new node is ATTRIBUTE, it is added into properties instead of children. | |
Add a list of node at the end of the child list of the... | |
Append the extra substring to the node content. | |
Append the extra substring to the node content. | |
Add a new node @elem as the next sibling of @cur If the new node was already inserted in a document it is first unlinked from its existing context. | |
Add a new node @elem as the previous sibling of @cur merging adjacent TEXT nodes (@elem may be freed) If the new node was already inserted in a document it is first unlinked from its existing context. | |
Add a new element @elem to the list of siblings of @cur merging adjacent TEXT nodes (@elem may be freed) If the new element was already inserted in a document it is first unlinked from its existing context. | |
Do a copy of the node. | |
Do a recursive copy of the node list. | |
Do a copy of the attribute. | |
Do a copy of an attribute list. | |
Dumps debug information for the element node, it is... | |
Dumps debug information for the list of element node, it is... | |
Dumps debug information for the element node, it is not... | |
Do a copy of the node to a given document. | |
Set the root element of the document (doc->children is a list containing possibly comments, PIs, etc ...). | |
Free a node, this is a recursive behaviour, all the children are freed too. | |
Free a node and all its siblings, this is a recursive behaviour, all the children are freed too. | |
Searches for the BASE URL. | |
Read the value of a node, this can be either the text carried directly by this node if it's a TEXT node or the aggregate string of the values carried by this node child's (TEXT and ENTITY_REF). | |
Searches the language of a node, i.e. | |
Searches the space preserving behaviour of a node, i.e. | |
Search for an attribute associated to a node This attribute has to be anchored in the namespace specified. | |
Search an attribute associated to a node This function also looks in DTD attribute declaration for #FIXED or default declaration values unless DTD use has been turned off. | |
Checks whether this node is an empty or whitespace only (and possibly ignorable) text-node. | |
Determine whether an attribute is of type ID. | |
Determine whether an attribute is of type Ref. | |
Is this node a Text node ?... | |
Search the last child of a node. | |
Get line number of @node. | |
Builds the string equivalent to the text contained in the Node list made of TEXTs and ENTITY_REFs, contrary to xmlNodeListGetString() this function doesn't do any character encoding handling. | |
Build the string equivalent to the text contained in the... | |
Count the children of @node. | |
Dump to @output the type and name of @node. | |
Creation of a new child element, added at the end of @parent children list. | |
Creation of a new Namespace. | |
Create a new property tagged with a namespace and carried by a node. | |
Create a new property tagged with a namespace and carried by a node. | |
Create a new property carried by a node. | |
Creation of a new child element, added at the end of @parent children list. | |
Build a structure based Path for the given node... | |
Search and get the value of an attribute associated to a node This does the entity substitution. | |
Get the namespace of a node... | |
Get the namespace of a node... | |
Search and get the value of an attribute associated to a node This attribute has to be anchored in the namespace specified. | |
Search and get the value of an attribute associated to a node This does the entity substitution. | |
This function checks that all the namespaces declared within the given tree are properly declared. | |
Unlink the old node from its current context, prune the new one at the same place. | |
Search a Ns registered under a given name space for a document. | |
Search a Ns aliasing a given URI. | |
Set (or reset) the base URI of a node, i.e. | |
Replace the content of a node. | |
Replace the content of a node. | |
Set the language of a node, i.e. | |
update all nodes in the list to point to the right document... | |
Set (or reset) the name of a node. | |
Associate a namespace to a node, a posteriori. | |
Set (or reset) an attribute carried by a node. | |
Set (or reset) an attribute carried by a node. | |
Set (or reset) the space preserving behaviour of a node, i.e. | |
update all nodes under the tree to point to the right... | |
Print node to the output FILE... | |
Concat the given string at the end of the existing node... | |
Merge two text nodes into one... | |
Unlink a node from it's current context, the node is not... | |
Remove an attribute carried by a node. | |
Remove an attribute carried by a node. | |
Does the validation related extra step of the normalization of attribute values: If the declared value is not CDATA, then the XML processor must further process the normalized attribute value by discarding any leading and trailing space (#x20) characters, and by replacing sequences of space (#x20) characters by single space (#x20) character. | |
Implement the XInclude substitution for the given subtree... | |
Implement the XInclude substitution for the given subtree... | |
Converts a node to its number value... | |
Converts a node to its string value. | |
Compare two nodes w.r.t document order... | |
Create a new xmlXPathObjectPtr of type NodeSet and... | |
Create a new xmlXPathObjectPtr of type Value Tree (XSLT)... | |
Traversal function for the "ancestor" direction the... | |
Traversal function for the "ancestor-or-self" direction he ancestor-or-self axis contains the context node and ancestors of the context node in reverse document order; thus the context node is the first node on the axis, and the context node's parent the second; parent here is defined the same as with the parent axis. | |
Traversal function for the "attribute" direction TODO:... | |
Traversal function for the "child" direction The child axis contains the children of the context node in document order. | |
Traversal function for the "descendant" direction the descendant axis contains the descendants of the context node in document order; a descendant is a child or a child of a child and so on. | |
Traversal function for the "descendant-or-self" direction... | |
Traversal function for the "following" direction The... | |
Traversal function for the "following-sibling" direction The following-sibling axis contains the following siblings of the context node in document order. | |
Traversal function for the "namespace" direction the namespace axis contains the namespace nodes of the context node; the order of nodes on this axis is implementation-defined; the axis will be empty unless the context node is an element We keep the XML namespace node at the end of the list. | |
Traversal function for the "parent" direction The parent axis contains the parent of the context node, if there is one. | |
Traversal function for the "preceding" direction the... | |
Traversal function for the "preceding-sibling" direction The preceding-sibling axis contains the preceding siblings of the context node in reverse document order; the first preceding sibling is first on the axis; the sibling preceding that node is the second on the axis and so on. | |
Traversal function for the "self" direction The self axis... | |
Create a new xmlXPathObjectPtr of type range using a single... | |
Create a new XPointer context... | |
Create a new xmlXPathObjectPtr of type LocationSet and... | |
Create a new xmlXPathObjectPtr of type range... | |
Create a new xmlXPathObjectPtr of type range using 2 nodes... | |
Inherited from xmlCore | |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
|
Property Summary | |
---|---|
Inherited from xmlCore | |
children : First child node... | |
content : Content of this node... | |
doc : The document this node belongs to... | |
last : Last sibling node... | |
name : Node name... | |
next : Next sibling node... | |
parent : Parent node... | |
prev : Previous sibling node... | |
properties : List of properies... | |
type : Node type... |
Method Details |
---|
__init__(self,
doc,
c14nMethodId,
signMethodId,
id=None,
_obj=None)
|
addObject(self, id=None, mimeType=None, encoding=None)Adds <dsig:Object/> node to the <dsig:Signature/> node. id : the node id (may be None). mimeType : the object mime type (may be None). encoding : the object encoding (may be None). Returns : the newly created <dsig:Object/> node or None if an error occurs. |
addReference(self, digestMethodId, id=None, uri=None, type=None)Adds <dsig:Reference/> node with given URI (uri), Id (id) and Type (type) attributes and the required children <dsig:DigestMethod/> and <dsig:DigestValue/> to the <dsig:SignedInfo/> child of node. digestMethodId : the reference digest method. id : the node id (may be None). uri : the reference node uri (may be None). type : the reference node type (may be None). Returns : the newly created <dsig:Reference/> node or None if an error occurs. |
ensureKeyInfo(self, id=None)Adds (if necessary) <dsig:KeyInfo/> node to the <dsig:Signature/> node. id : the node id (may be None). Returns : the newly created <dsig:KeyInfo/> node or None if an error occurs. |
getC14NMethodNode(self)Gets <dsig:CanonicalizationMethod/> child of <dsig:KeyInfo/> node. Returns : <dsig:CanonicalizationMethod /> node or None if an error occurs. |
getSignMethodNode(self)Gets <dsig:SignatureMethod/> child of <dsig:KeyInfo/> node. Returns : <dsig:SignatureMethod /> node or None if an error occurs. |
Trees | Index | Help |
|
---|
Generated by Epydoc 2.0 on Mon Feb 9 01:09:35 2004 | http://epydoc.sf.net |