Agent: Add interface for Credentials Store

This commit is contained in:
Ilija Lazoroski 2022-03-24 18:03:59 +01:00
parent cf211bc46f
commit cafbe97880
2 changed files with 20 additions and 0 deletions

View File

@ -0,0 +1 @@
from .i_credentials_store import ICredentialsStore

View File

@ -0,0 +1,19 @@
import abc
from typing import Mapping
class ICredentialsStore(metaclass=abc.ABCMeta):
@abc.abstractmethod
def add_credentials(self, credentials_to_add: Mapping = {}) -> None:
"""
Method that adds credentials to the CredentialStore
:param Credentials credentials: The credentials which will be added
"""
@abc.abstractmethod
def get_credentials(self) -> Mapping:
"""
Method that gets credentials from the ControlChannel
:return: A squence of Credentials that have been added for propagation
:rtype: Mapping
"""