joonis Logo

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

from fintech.ebics import EbicsKeyRing
import json

class MyKeyRing(EbicsKeyRing):

    def _write(self, keydict):
        keys = json.dumps(keydict)

keys = read_keys_from_db()
keydict = json.loads(keys)
keyring = MyKeyRing(keydict, 'SECRET')

Can I
  help you?

Just drop me a line at