6.2. Logging
6.4. LDAPServer
The CredentialStore service implements retrieving and decrypting of credentials from a configured local credential store.
[credential_store] # Name of the local credential store configured in SPS for hosting sensitive # configuration data. For more information, read the "Store sensitive # plugin data securely" section in the documentation. ; name=<name-of-credential-store-policy-that-hosts-sensitive-data>
from safeguard.sessions.plugin import PluginConfiguration from safeguard.sessions.plugin import CredentialStore class Plugin: def __init__(self, configuration): self.__config = PluginConfiguration(configuration) self.__cred_store = CredentialStore.from_config(self.__config)
safeguard.sessions.plugin.credential_store.
CredentialStore
The CredentialStore class represents access to a local credential store.
Do not instantiate a CredentialStore with its constructor, rather use the from_config() method.
from_config()
from_config
The from_config() class method creates an instance of CredentialStore from a given plugin configuration.
PluginConfiguration
credential store service instance
get_all
The get_all() method retrieves all decrypted credentials from the credential store.
get_all()
RequiredConfigurationSettingNotFound
get_credentials
The get_credentials() method retrieves all the decrypted credentials for a given host and user pair.
get_credentials()
list of unfiltered, decrypted credentials
list
get_passwords
The get_passwords() method retrieves all the decrypted passwords for a given host and user pair.
get_passwords()
list of unfiltered, decrypted passwords
get_keys
The get_keys() method retrieves all the decrypted SSH Keys for a given host and user pair.
get_keys()
list of unfiltered, decrypted SSH Keys
get_certificates
The get_certificates() method retrieves all the decrypted X509 Key for a given host and user pair.
get_certificates()
list of unfiltered, decrypted X509 Key
safeguard.sessions.plugin.credential_store_exceptions.
LocalCredentialStoreNotFound
The LocalCredentialStoreNotFound exception is raised when the configured local credential store cannot be found.