Interface ArtifactEncryptionSecretsStorage


public interface ArtifactEncryptionSecretsStorage
Interface definition for artifact encryption secrets store. It maintains secret key/value pairs identified by id (e.g. software module id)
  • Method Summary

    Modifier and Type
    Method
    Description
    void
    addSecret(long id, String secretKey, String secretValue)
    Adds secret key/value pair associated with particular id (e.g. software module id) to the store.
    getSecret(long id, String secretKey)
    Retrieves secret value associated with particular id and key from the store.
  • Method Details

    • addSecret

      void addSecret(long id, String secretKey, String secretValue)
      Adds secret key/value pair associated with particular id (e.g. software module id) to the store.
      Parameters:
      id - id of the secret
      secretKey - key of the secret
      secretValue - value of the secret
    • getSecret

      Optional<String> getSecret(long id, String secretKey)
      Retrieves secret value associated with particular id and key from the store.
      Parameters:
      id - id of the secret
      secretKey - key of the secret