lemur/lemur/plugins/bases/issuer.py

27 lines
689 B
Python
Raw Normal View History

2015-06-22 22:47:27 +02:00
"""
.. module: lemur.plugins.bases.issuer
2015-06-22 22:47:27 +02:00
:platform: Unix
:copyright: (c) 2015 by Netflix Inc., see AUTHORS for more
:license: Apache, see LICENSE for more details.
.. moduleauthor:: Kevin Glisson <kglisson@netflix.com>
"""
from lemur.plugins.base import Plugin
2015-06-22 22:47:27 +02:00
2015-07-21 22:06:13 +02:00
class IssuerPlugin(Plugin):
2015-06-22 22:47:27 +02:00
"""
This is the base class from which all of the supported
issuers will inherit from.
"""
type = 'issuer'
def create_certificate(self, csr, issuer_options):
2015-06-22 22:47:27 +02:00
raise NotImplementedError
def create_authority(self, options):
raise NotImplementedError
def revoke_certificate(self, certificate, comments):
raise NotImplementedError