""" .. module: lemur.plugins.bases.issuer :platform: Unix :copyright: (c) 2018 by Netflix Inc., see AUTHORS for more :license: Apache, see LICENSE for more details. .. moduleauthor:: Kevin Glisson """ from lemur.plugins.base import Plugin class IssuerPlugin(Plugin): """ This is the base class from which all of the supported issuers will inherit from. """ type = "issuer" def create_certificate(self, csr, issuer_options): raise NotImplementedError def create_authority(self, options): raise NotImplementedError def revoke_certificate(self, certificate, comments): raise NotImplementedError def get_ordered_certificate(self, certificate): raise NotImplementedError def cancel_ordered_certificate(self, pending_cert, **kwargs): raise NotImplementedError def wrap_certificate(self, cert): pass def wrap_auth_certificate(self, cert): pass def wrap_private_key(self, cert): pass