Class EnvVarSecretsStoreConnector

All Implemented Interfaces:
AuditLoggingComponent, SecureConnectorExtension, VirtualConnectorExtension

public class EnvVarSecretsStoreConnector extends SecretsStoreConnector
EnvVarSecretsStoreConnector retrieves secrets from environment variables. Each secret is named for its environment variable.
  • Constructor Details

    • EnvVarSecretsStoreConnector

      public EnvVarSecretsStoreConnector()
  • Method Details

    • refreshSecrets

      protected void refreshSecrets()
      Request that the subclass refreshes its secrets.
      Specified by:
      refreshSecrets in class SecretsStoreConnector
    • getSecret

      public String getSecret(String secretName)
      Retrieve a secret from the secrets store.
      Specified by:
      getSecret in class SecretsStoreConnector
      Parameters:
      secretName - name of the secret.
      Returns:
      secret
    • getRefreshTimeInterval

      public long getRefreshTimeInterval()
      Retrieve the refresh time from the secrets store.
      Specified by:
      getRefreshTimeInterval in class SecretsStoreConnector
      Returns:
      how long the secrets can be cached - 0 means indefinitely