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

io.quarkus.vault.runtime.client.secretengine.VaultInternalDatabaseSecretEngine Maven / Gradle / Ivy

package io.quarkus.vault.runtime.client.secretengine;

import javax.inject.Singleton;

import io.quarkus.vault.runtime.client.VaultInternalBase;
import io.quarkus.vault.runtime.client.dto.database.VaultDatabaseCredentials;

@Singleton
public class VaultInternalDatabaseSecretEngine extends VaultInternalBase {

    public VaultDatabaseCredentials generateCredentials(String token, String databaseCredentialsRole) {
        return vaultClient.get("database/creds/" + databaseCredentialsRole, token, VaultDatabaseCredentials.class);
    }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy