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

Class KeysMngr


Method Summary
  __init__(self, _obj)
Creates new keys manager.
  __getattr__(self, name)
  __setattr__(self, name, value)
  adoptDataStore(self, store)
Adopts data store in the keys manager.
  adoptKeysStore(self, store)
Adopts keys store in the keys manager mngr.
  certLoad(self, filename, format, type)
Reads cert from filename and adds to the list of trusted or known untrusted certs in store.
  destroy(self)
Destroys keys manager...
  findKey(self, name, key_info_ctx)
Lookups key in the keys manager keys store.
  getDataStore(self, id)
Lookups the data store of given klass id in the keys manager.
  getKeysStore(self)
Gets the keys store.

Method Details

__init__(self, _obj=None)
(Constructor)

Creates new keys manager. Caller is responsible for freeing it with
destroy method.
Returns : the newly keys manager or None if an error occurs.

adoptDataStore(self, store)

Adopts data store in the keys manager.
store   : the data store.
Returns : 0 on success or a negative value if an error occurs.

adoptKeysStore(self, store)

Adopts keys store in the keys manager mngr.
store   : the keys store.
Returns : 0 on success or a negative value if an error occurs.

certLoad(self, filename, format, type)

Reads cert from filename and adds to the list of trusted
or known untrusted certs in store.
filename : the certificate file.
format   : the certificate file format.
type     : the flag that indicates is the certificate in filename
trusted or not.
Returns  : 0 on success or a negative value otherwise.

destroy(self)

Destroys keys manager

findKey(self, name, key_info_ctx)

Lookups key in the keys manager keys store.
name       : the desired key name.
keyInfoCtx : the <dsig:KeyInfo/> node processing context.
Returns    : a key or None if key is not found or an error occurs.

getDataStore(self, id)

Lookups the data store of given klass id in the keys manager.
id      : the desired data store klass.
Returns : data store or None if it is not found or an error occurs.

getKeysStore(self)

Gets the keys store.
Returns : the keys store in the keys manager mngr or None if there is
no store or an error occurs.

Generated by Epydoc 2.1 on Mon Jan 31 14:03:13 2005 http://epydoc.sf.net