Interface SecretsResolver
public interface SecretsResolver
Interface for component that can use initialized secret providers to resolve secrets (e.g. instead of decrypting them).
-
Method Summary
Modifier and TypeMethodDescriptionvoid
addSecretsProvider
(@NotNull SecretsProvider<?> provider) @NotNull List<SecretsProvider<?>>
void
removeSecretsProvider
(@NotNull SecretsProvider<?> provider) @NotNull ByteBuffer
resolveSecretBinary
(@NotNull String provider, @NotNull String key) @NotNull String
resolveSecretString
(@NotNull String provider, @NotNull String key)
-
Method Details
-
addSecretsProvider
- Parameters:
provider
- Initialized provider to be added to the list of usable providers.
-
removeSecretsProvider
- Parameters:
provider
- Initialized provider to be removed from the list of usable providers.
-
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
-