Interface SecretsResolver

All Known Implementing Classes:
ConfigurableProtector

public interface SecretsResolver
Interface for component that can use initialized secret providers to resolve secrets (e.g. instead of decrypting them).
  • Method Details

    • addSecretsProvider

      void addSecretsProvider(@NotNull @NotNull SecretsProvider<?> provider)
      Parameters:
      provider - Initialized provider to be added to the list of usable providers.
    • removeSecretsProvider

      void removeSecretsProvider(@NotNull @NotNull SecretsProvider<?> provider)
      Parameters:
      provider - Initialized provider to be removed from the list of usable providers.
    • getSecretsProviders

      @NotNull @NotNull List<SecretsProvider<?>> getSecretsProviders()
      Returns:
      List of usable secret providers.
    • resolveSecretString

      @NotNull @NotNull String resolveSecretString(@NotNull @NotNull String provider, @NotNull @NotNull String key) throws EncryptionException
      Throws:
      EncryptionException
    • resolveSecretBinary

      @NotNull @NotNull ByteBuffer resolveSecretBinary(@NotNull @NotNull String provider, @NotNull @NotNull String key) throws EncryptionException
      Throws:
      EncryptionException