Class Kv2SecurityProvider
- java.lang.Object
-
- io.helidon.integrations.vault.secrets.kv2.Kv2SecurityProvider
-
- All Implemented Interfaces:
SecretsProvider<Kv2SecurityProvider.Kv2SecretConfig>
,SecurityProvider
public class Kv2SecurityProvider extends Object implements SecretsProvider<Kv2SecurityProvider.Kv2SecretConfig>
Integration with Helidon Security.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
Kv2SecurityProvider.Kv2SecretConfig
Configuration of a secret when using programmatic setup of security secrets.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Supplier<Single<Optional<String>>>
secret(Config config)
Create secret supplier from configuration.Supplier<Single<Optional<String>>>
secret(Kv2SecurityProvider.Kv2SecretConfig providerConfig)
Create secret supplier from configuration object.-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface io.helidon.security.spi.SecurityProvider
supportedAnnotations, supportedAttributes, supportedConfigKeys, supportedCustomObjects
-
-
-
-
Method Detail
-
secret
public Supplier<Single<Optional<String>>> secret(Config config)
Description copied from interface:SecretsProvider
Create secret supplier from configuration.- Specified by:
secret
in interfaceSecretsProvider<Kv2SecurityProvider.Kv2SecretConfig>
- Parameters:
config
- config located on the node of the specific secretconfig
node- Returns:
- supplier to retrieve the secret
-
secret
public Supplier<Single<Optional<String>>> secret(Kv2SecurityProvider.Kv2SecretConfig providerConfig)
Description copied from interface:SecretsProvider
Create secret supplier from configuration object.- Specified by:
secret
in interfaceSecretsProvider<Kv2SecurityProvider.Kv2SecretConfig>
- Parameters:
providerConfig
- configuration of a specific secret- Returns:
- supplier to retrieve the secret
-
-