All Downloads are FREE. Search and download functionalities are using the official Maven repository.

io.scalecube.config.vault.EnvironmentVaultTokenSupplier Maven / Gradle / Ivy

There is a newer version: 0.4.15
Show newest version
package io.scalecube.config.vault;

import com.bettercloud.vault.EnvironmentLoader;
import com.bettercloud.vault.VaultConfig;
import java.util.Objects;

public class EnvironmentVaultTokenSupplier implements VaultTokenSupplier {

  public String getToken(EnvironmentLoader environmentLoader, VaultConfig config) {
    return Objects.requireNonNull(config.getToken(), "vault token");
  }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy