External key storage
Out of the box an EbicsKeyRing instance saves all keys in a file. If you want to store them at another place, eg. in a database, it is possible to implement this by subclassing EbicsKeyRing and overwriting the _write method.
import fintech fintech.register() from fintech.ebics import EbicsKeyRing import json class MyKeyRing(EbicsKeyRing): def _write(self, keydict): keys = json.dumps(keydict) store_keys_in_db(keys) keys = read_keys_from_db() keydict = json.loads(keys) keyring = MyKeyRing(keydict, 'SECRET')