Interface CredentialsProvider


public interface CredentialsProvider
Provides an indirection between credentials consumers such as Agroal and implementers such as Vault.

Quarkus extensions MUST invoke the asynchronous variant. that is getCredentialsAsync(String).

The default implementation of asynchronous variant invokes the synchronous getCredentials(String) on a worker thread.

  • Field Details

  • Method Details

    • getCredentials

      default Map<String,String> getCredentials(String credentialsProviderName)
      Returns the credentials for a given credentials provider.
      Parameters:
      credentialsProviderName - the name of the credentials provider, which can be used to retrieve custom configuration
      Returns:
      the credentials
    • getCredentialsAsync

      default io.smallrye.mutiny.Uni<Map<String,String>> getCredentialsAsync(String credentialsProviderName)
      Returns the credentials for a given credentials provider.
      Parameters:
      credentialsProviderName - the name of the credentials provider, which can be used to retrieve custom configuration
      Returns:
      a Uni completed with the credentials, or failed