Interface I_CmsSecretStore

All Superinterfaces:
I_CmsConfigurationParameterHandler
All Known Implementing Classes:
CmsNullSecretStore, CmsRfsSecretStore

Interface for a system-wide secret store, which can be used to access (string-valued) credentials like passwords or API keys for external services.
  • Method Details

    • getSecret

      Gets the secret for the given key.

      If no secret is found, null will be returned.

      Note: this may be called before the initialize() method, and in that case, it should not throw any exceptions (whether it can actually return something meaningful depends on the implementation).

      Parameters:
      key - the key for a secret
      Returns:
      the secret
    • initialize

      void initialize(CmsObject cmsObject)
      The Admin CmsObject to use for Vfs operations, etc.
      Parameters:
      cmsObject - the admin CmsObject