Class ConfigVaultProvider.SecretConfig

    • Method Detail

      • createSingleSupplier

        public static ConfigVaultProvider.SecretConfig createSingleSupplier​(Supplier<Single<Optional<String>>> valueSupplier)
        Create a new secret configuration with a supplier of a future (Single), such as when retrieving the secret from a remote service. The supplier must be thread safe.
        Parameters:
        valueSupplier - supplier of a value
        Returns:
        a new secret configuration
      • createOptionalSupplier

        public static ConfigVaultProvider.SecretConfig createOptionalSupplier​(Supplier<Optional<String>> valueSupplier)
        Create a new secret configuration with a supplier of an Optional, such as when retrieving the secret from some local information that may change. The supplier must be thread safe.
        Parameters:
        valueSupplier - supplier of an optional value
        Returns:
        a new secret configuration
      • create

        public static ConfigVaultProvider.SecretConfig create​(Supplier<String> valueSupplier)
        Create a new secret from a supplier, such as when computing the secret value. The supplier must be thread safe.
        Parameters:
        valueSupplier - supplier of a value
        Returns:
        a new secret configuration