io.quarkus.vault.runtime.client.authmethod.VaultInternalAppRoleAuthMethod Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of quarkus-vault Show documentation
Show all versions of quarkus-vault Show documentation
Store your credentials securely in HashiCorp Vault
package io.quarkus.vault.runtime.client.authmethod;
import javax.inject.Singleton;
import io.quarkus.vault.runtime.client.VaultInternalBase;
import io.quarkus.vault.runtime.client.dto.auth.VaultAppRoleAuth;
import io.quarkus.vault.runtime.client.dto.auth.VaultAppRoleAuthBody;
@Singleton
public class VaultInternalAppRoleAuthMethod extends VaultInternalBase {
public VaultAppRoleAuth login(String roleId, String secretId) {
VaultAppRoleAuthBody body = new VaultAppRoleAuthBody(roleId, secretId);
return vaultClient.post("auth/approle/login", null, body, VaultAppRoleAuth.class);
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy