use of com.github.nagyesta.lowkeyvault.http.ApacheHttpClientProvider in project lowkey-vault by nagyesta.
the class ManagementStepDefs method aVaultIsCreatedWithName.
@Given("a vault is created with name {name}")
public void aVaultIsCreatedWithName(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));
context.getClient().createVault(URI.create(vaultUrl), RecoveryLevel.RECOVERABLE_AND_PURGEABLE, 90);
}
use of com.github.nagyesta.lowkeyvault.http.ApacheHttpClientProvider in project lowkey-vault by nagyesta.
the class SecretsStepDefs method theSecretClientIsCreatedWithVaultNameSelected.
@Given("a secret client is created with the vault named {name}")
public void theSecretClientIsCreatedWithVaultNameSelected(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));
}
use of com.github.nagyesta.lowkeyvault.http.ApacheHttpClientProvider 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