Trees | Index | Help |
|
---|
Module xmlsec :: Class EncCtx |
|
Method Summary | |
---|---|
Creates <enc:EncryptedData/> element processing context. | |
__getattr__(self,
name)
| |
__setattr__(self,
name,
value)
| |
Encrypts data according to template tmpl. | |
Copies user preference from src context. | |
Prints the debug information about enc context to output. | |
Prints the debug information about enc context to output in XML format. | |
Decrypts node and if necessary replaces node with decrypted data. | |
Decrypts node data to the encCtx buffer. | |
Destroys context object. | |
Cleans up context object. | |
Initializes <enc:EncryptedData/> element processing context. | |
Resets enc context object, user settings are not touched. | |
Encrypts data from uri according to template tmpl. | |
Encrypts node according to template tmpl. |
Method Details |
---|
__init__(self,
keysMngr=None,
_obj=None)
|
binaryEncrypt(self, tmpl, data, dataSize)Encrypts data according to template tmpl. tmpl : the <enc:EncryptedData/> template node. data : the binary buffer. dataSize : the data buffer size. Returns : 0 on success or a negative value if an error occurs. |
copyUserPref(self, dst)Copies user preference from src context. dst : the destination context. Returns : 0 on success or a negative value if an error occurs. |
debugDump(self, output)Prints the debug information about enc context to output. output : the output file. |
debugXmlDump(self, output)Prints the debug information about enc context to output in XML format. output : the output file. |
decrypt(self, node)Decrypts node and if necessary replaces node with decrypted data. node : the <enc:EncryptedData/> node. Returns : 0 on success or a negative value if an error occurs. |
decryptToBuffer(self, node)Decrypts node data to the encCtx buffer. node : the <enc:EncryptedData/> node. Returns : 0 on success or a negative value if an error occurs. |
destroy(self)Destroys context object. |
finalize(self)Cleans up context object. |
initialize(self, keysMngr)Initializes <enc:EncryptedData/> element processing context. The caller is responsible for cleaing up returned object by calling finalize method. keysMngr : the keys manager. Returns : 0 on success or a negative value if an error occurs. |
reset(self)Resets enc context object, user settings are not touched. |
uriEncrypt(self, tmpl, uri)Encrypts data from uri according to template tmpl. tmpl : the <enc:EncryptedData/> template node. uri : the URI. Returns : 0 on success or a negative value if an error occurs. |
xmlEncrypt(self, tmpl, node)Encrypts node according to template tmpl. If requested, node is replaced with result <enc:EncryptedData/> node. tmpl : the <enc:EncryptedData/> template node. node : the node for encryption. Returns : 0 on success or a negative value if an error occurs. |
Trees | Index | Help |
|
---|
Generated by Epydoc 2.1 on Mon Jan 31 14:03:13 2005 | http://epydoc.sf.net |