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

Class Transform


Method Summary
  __init__(self, _obj)
Creates new transform of the id klass.
  __getattr__(self, name)
  __setattr__(self, name, value)
  base64SetLineSize(self, lineSize)
Sets the max line size to lineSize for an BASE64 encode transform.
  destroy(self)
Destroys transform.
  nodeRead(self, usage, transformCtx)
Reads transform from the node as follows: 1) reads 'Algorithm' attribute; 2) checks the lists of known and allowed transforms; 3) calls transform's create method; 4) calls transform's read transform node method.
  setKey(self, key)
Sets the transform's key.
  setKeyReq(self, keyReq)
Sets the key requirements for transform in the keyReq.
  visa3DHackSetID(self, id)
Sets the ID value for an Visa3DHack transform.
  xpointerSetExpr(self, expr, nodeSetType, hereNode)
Sets the XPointer expression for an XPointer transform.

Method Details

__init__(self, _obj=None)
(Constructor)

Creates new transform of the id klass. The caller is responsible for
destroying returned tansform using destroy method.
id      : the transform id to create.
Returns : newly created transform or None if an error occurs.

base64SetLineSize(self, lineSize)

Sets the max line size to lineSize for an BASE64 encode transform.
lineSize : the new max line size.

destroy(self)

Destroys transform.

nodeRead(self, usage, transformCtx)

Reads transform from the node as follows:
1) reads 'Algorithm' attribute;
2) checks the lists of known and allowed transforms;
3) calls transform's create method;
4) calls transform's read transform node method.
usage        : the transform usage (signature, encryption, ...).
transformCtx : the transform's chaing processing context.
Returns      : newly created transform or None if an error occurs.

setKey(self, key)

Sets the transform's key.
key     : the key.
Returns : 0 on success or a negative value otherwise.

setKeyReq(self, keyReq)

Sets the key requirements for transform in the keyReq.
keyReq  : the keys requirements object.
Returns : 0 on success or a negative value otherwise.

visa3DHackSetID(self, id)

Sets the ID value for an Visa3DHack transform.
id      : the ID value.
Returns : 0 on success or a negative value if an error occurs.

xpointerSetExpr(self, expr, nodeSetType, hereNode)

Sets the XPointer expression for an XPointer transform.
expr        : the XPointer expression.
nodeSetType : the type of evaluated XPointer expression.
hereNode    : the pointer to 'here' node.
Returns     : 0 on success or a negative value if an error occurs.

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