Package org.forgerock.openig.secrets
Class DefaultSecretsService.Builder
- java.lang.Object
-
- org.forgerock.openig.secrets.DefaultSecretsService.Builder
-
- Enclosing class:
- DefaultSecretsService
public static class DefaultSecretsService.Builder extends Object
DefaultSecretsService's builder.
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidinjectIn(HeapImpl destination)Builds and configures a newDefaultSecretsServiceinstance, and finally injects itsSecretsProviderand reference in the givendestinationHeapImpl.DefaultSecretsService.BuilderwithDefaultStore(Supplier<SecretStore<?>> supplier)Configure this service with a default SecretStore supplier.DefaultSecretsService.BuilderwithSecretsProvider(SecretsProvider provider)Configure this service with the given parentprovider.
-
-
-
Method Detail
-
withSecretsProvider
public DefaultSecretsService.Builder withSecretsProvider(SecretsProvider provider)
Configure this service with the given parentprovider.- Parameters:
provider- secrets provider- Returns:
- this builder.
-
withDefaultStore
public DefaultSecretsService.Builder withDefaultStore(Supplier<SecretStore<?>> supplier)
Configure this service with a default SecretStore supplier.This supplier will only be called if there is no store configured in the JSON node.
- Parameters:
supplier- provide a defaultSecretStore- Returns:
- this builder
-
injectIn
public void injectIn(HeapImpl destination) throws HeapException
Builds and configures a newDefaultSecretsServiceinstance, and finally injects itsSecretsProviderand reference in the givendestinationHeapImpl.- Parameters:
destination- heap receiving the new SecretsService- Throws:
HeapException- if it cannot build the instance
-
-