Module xmlsec :: Class DSigReferenceCtx
[frames | no frames]

Class DSigReferenceCtx


Method Summary
  __init__(self, dsigCtx, origin, _obj)
Creates new <dsig:Reference/> element processing context.
  __getattr__(self, name)
  __setattr__(self, name, value)
  debugDump(self, output)
Prints the debug information about dsigCtx to output.
  debugXmlDump(self, output)
Prints the debug information about dsigCtx to output file in XML format.
  destroy(self)
Destroys <dsig:Reference/> element processing context object...
  finalize(self)
Cleans up <dsig:Reference/> element processing object.
  getPreDigestBuffer(self)
Gets the results of <dsig:Reference/> node processing just before digesting (valid only if DSIG_FLAGS_STORE_SIGNEDINFO_REFERENCES or DSIG_FLAGS_STORE_MANIFEST_REFERENCES flags of signature context is set).
  initialize(self, dsigCtx, origin)
Initializes new <dsig:Reference/> element processing context.
  processNode(self, node)
The Reference Element (http://www.w3.org/TR/xmldsig-core/sec-Reference) Reference is an element that may occur one or more times.

Method Details

__init__(self, dsigCtx=None, origin=None, _obj=None)
(Constructor)

Creates new <dsig:Reference/> element processing context. Caller is
responsible for destroying the returned context by calling destroy
method.
dsigCtx : the parent <dsig:Signature/> node processing context.
origin  : the reference origin (<dsig:SignedInfo/> or <dsig:Manifest/> node).
Returns : newly created context or None if an error occurs.

debugDump(self, output)

Prints the debug information about dsigCtx to output.
output : the output file.

debugXmlDump(self, output)

Prints the debug information about dsigCtx to output file in XML format.
output : the output file.

destroy(self)

Destroys <dsig:Reference/> element processing context object

finalize(self)

Cleans up <dsig:Reference/> element processing object.

getPreDigestBuffer(self)

Gets the results of <dsig:Reference/> node processing just before
digesting (valid only if DSIG_FLAGS_STORE_SIGNEDINFO_REFERENCES or
DSIG_FLAGS_STORE_MANIFEST_REFERENCES flags of signature context is set).
Returns : the buffer or None if an error occurs.

initialize(self, dsigCtx, origin)

Initializes new <dsig:Reference/> element processing context. Caller is
responsible for cleaning up the returned context by calling finalize
method.
dsigCtx : the parent <dsig:Signature/> node processing context.
origin  : the reference origin (<dsig:SignedInfo/> or <dsig:Manifest/> node).
Returns : 0 on succes or a negative value otherwise.

processNode(self, node)

The Reference Element (http://www.w3.org/TR/xmldsig-core/sec-Reference)

Reference is an element that may occur one or more times. It specifies a
digest algorithm and digest value, and optionally an identifier of the
object being signed, the type of the object, and/or a list of transforms
to be applied prior to digesting. The identification (URI) and transforms
describe how the digested content (i.e., the input to the digest method)
was created. The Type attribute facilitates the processing of referenced
data. For example, while this specification makes no requirements over
external data, an application may wish to signal that the referent is a
Manifest. An optional ID attribute permits a Reference to be referenced
from elsewhere.
node    : the <dsig:Reference/> node.
Returns : 0 on succes or aa negative value otherwise.

Generated by Epydoc 2.1 on Sun Jan 1 18:42:41 2006 http://epydoc.sf.net