use of com.github.nagyesta.lowkeyvault.http.AuthorityOverrideFunction in project lowkey-vault by nagyesta.
the class KeysStepDefs method theKeyClientIsCreatedWithVaultNameSelected.
@Given("a key client is created with the vault named {name}")
public void theKeyClientIsCreatedWithVaultNameSelected(final String vaultName) {
final String vaultAuthority = vaultName + ".localhost:8443";
final String vaultUrl = "https://" + vaultAuthority;
final AuthorityOverrideFunction overrideFunction = new AuthorityOverrideFunction(vaultAuthority, CONTAINER_AUTHORITY);
context.setProvider(new ApacheHttpClientProvider(vaultUrl, overrideFunction));
}
Aggregations