Commit acd53d70 authored by Martin van Es's avatar Martin van Es
Browse files

Rename name to type

parent f12bb4b0
name: test_signer
type: test_signer
key_spec: meta.key
cert_spec: meta.crt
metadir: metadata/test
name: hsm_signer
type: hsm_signer
key_spec: pkcs11:///usr/lib/softhsm/
metadir: metadata/foobar
......@@ -31,9 +31,9 @@ _signers = {
class Signers():
def __init__(self, signer): = signer['name']
self.type = signer['type']
self.key_spec = signer['key_spec']
self.cert_spec = signer.get('cert_spec', None)
def sign(self, xml):
return _signers[](xml, self.key_spec, self.cert_spec)
return _signers[self.type](xml, self.key_spec, self.cert_spec)
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment