"Fossies" - the Fresh Open Source Software Archive  

Source code changes of the file "barbican/plugin/interface/certificate_manager.py" between
barbican-11.0.0.tar.gz and barbican-12.0.0.tar.gz

About: OpenStack Barbican is the OpenStack Key Manager service. It provides secure storage, provisioning and management of secret data.
The "Wallaby" series (latest release).

certificate_manager.py  (barbican-11.0.0):certificate_manager.py  (barbican-12.0.0)
skipping to change at line 28 skipping to change at line 28
The resources here should be generic across all certificate-related The resources here should be generic across all certificate-related
implementations. Hence do not place vendor-specific content in this module. implementations. Hence do not place vendor-specific content in this module.
""" """
import abc import abc
import datetime import datetime
from oslo_config import cfg from oslo_config import cfg
from oslo_utils import encodeutils from oslo_utils import encodeutils
import six
from stevedore import named from stevedore import named
from barbican.common import config from barbican.common import config
from barbican.common import exception from barbican.common import exception
import barbican.common.utils as utils import barbican.common.utils as utils
from barbican import i18n as u from barbican import i18n as u
from barbican.model import models from barbican.model import models
from barbican.model import repositories as repos from barbican.model import repositories as repos
from barbican.plugin.util import utils as plugin_utils from barbican.plugin.util import utils as plugin_utils
skipping to change at line 193 skipping to change at line 192
client_message = "" client_message = ""
status_code = 400 status_code = 400
def __init__(self, reason=u._('Unknown')): def __init__(self, reason=u._('Unknown')):
super(CertificateStatusInvalidOperation, self).__init__( super(CertificateStatusInvalidOperation, self).__init__(
u._('Invalid operation requested - ' u._('Invalid operation requested - '
'Reason: {reason}').format(reason=reason) 'Reason: {reason}').format(reason=reason)
) )
self.client_message = self.message self.client_message = self.message
@six.add_metaclass(abc.ABCMeta) class CertificateEventPluginBase(object, metaclass=abc.ABCMeta):
class CertificateEventPluginBase(object):
"""Base class for certificate eventing plugins. """Base class for certificate eventing plugins.
This class is the base plugin contract for issuing certificate related This class is the base plugin contract for issuing certificate related
events from Barbican. events from Barbican.
""" """
@abc.abstractmethod @abc.abstractmethod
def notify_certificate_is_ready( def notify_certificate_is_ready(
self, project_id, order_ref, container_ref): self, project_id, order_ref, container_ref):
"""Notify that a certificate has been generated and is ready to use. """Notify that a certificate has been generated and is ready to use.
skipping to change at line 228 skipping to change at line 226
:param project_id: Project ID associated with this order :param project_id: Project ID associated with this order
:param order_ref: HATEOAS reference URI to the submitted Barbican Order :param order_ref: HATEOAS reference URI to the submitted Barbican Order
:param error_msg: Error message if it is available :param error_msg: Error message if it is available
:param retry_in_msec: Delay before attempting to talk to the CA again. :param retry_in_msec: Delay before attempting to talk to the CA again.
If this is 0, then no attempt will be made. If this is 0, then no attempt will be made.
:returns: None :returns: None
""" """
raise NotImplementedError # pragma: no cover raise NotImplementedError # pragma: no cover
@six.add_metaclass(abc.ABCMeta) class CertificatePluginBase(object, metaclass=abc.ABCMeta):
class CertificatePluginBase(object):
"""Base class for certificate plugins. """Base class for certificate plugins.
This class is the base plugin contract for certificates. This class is the base plugin contract for certificates.
""" """
@abc.abstractmethod @abc.abstractmethod
def get_default_ca_name(self): def get_default_ca_name(self):
"""Get the default CA name """Get the default CA name
Provides a default CA name to be returned in the default Provides a default CA name to be returned in the default
 End of changes. 3 change blocks. 
5 lines changed or deleted 2 lines changed or added

Home  |  About  |  Features  |  All  |  Newest  |  Dox  |  Diffs  |  RSS Feeds  |  Screenshots  |  Comments  |  Imprint  |  Privacy  |  HTTP(S)