Package io.quarkus.credentials
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 Summary
Fields -
Method Summary
Modifier and TypeMethodDescriptiongetCredentials(String credentialsProviderName) Returns the credentials for a given credentials provider.getCredentialsAsync(String credentialsProviderName) Returns the credentials for a given credentials provider.
-
Field Details
-
USER_PROPERTY_NAME
- See Also:
-
PASSWORD_PROPERTY_NAME
- See Also:
-
EXPIRATION_TIMESTAMP_PROPERTY_NAME
- See Also:
-
-
Method Details
-
getCredentials
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
Unicompleted with the credentials, or failed
-