io.scalecube.config.vault.EnvironmentVaultTokenSupplier Maven / Gradle / Ivy
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");
}
}