Class YAMLSecretsFileConnector

All Implemented Interfaces:
AuditLoggingComponent, SecureConnectorExtension, VirtualConnectorExtension

public class YAMLSecretsFileConnector extends YAMLSecretsStoreConnector
YAMLSecretsStoreConnector retrieves secrets from a YAML File
  • Constructor Details

    • YAMLSecretsFileConnector

      public YAMLSecretsFileConnector()
  • Method Details

    • start

      Indicates that the connector is completely configured and can begin processing.
      Overrides:
      start in class YAMLSecretsStoreConnector
      Throws:
      ConnectorCheckedException - the connector detected a problem.
      UserNotAuthorizedException - the connector was disconnected before/during start
    • getSecretsStore

      public SecretsStore getSecretsStore()
      Retrieve the refresh time from the secrets store.
      Returns:
      how long the secrets can be cached - 0 means indefinitely
    • setSecretsCollectionName

      public void setSecretsCollectionName(String secretsCollectionName)
      Dynamically set the secrets collection name for the secrets store.
      Parameters:
      secretsCollectionName - name of the secrets collection
    • saveSecretsCollection

      public void saveSecretsCollection(String collectionName, SecretsCollection newSecretsCollection) throws ConnectorCheckedException
      Save the requested secrets collection in the secrets store.
      Parameters:
      collectionName - collectionName for the save
      newSecretsCollection - associated collection details
      Throws:
      ConnectorCheckedException - a problem with the connector
    • deleteSecretsCollection

      public void deleteSecretsCollection(String collectionName) throws ConnectorCheckedException
      Delete the requested secrets collection from the secrets store.
      Parameters:
      collectionName - name for the lookup
      Throws:
      ConnectorCheckedException - a problem with the connector