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

io.quarkus.credentials.CredentialsProvider Maven / Gradle / Ivy

There is a newer version: 3.17.0
Show newest version
package io.quarkus.credentials;

import java.util.Map;

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

    String USER_PROPERTY_NAME = "user";
    String PASSWORD_PROPERTY_NAME = "password";
    String EXPIRATION_TIMESTAMP_PROPERTY_NAME = "expires-at";

    /**
     * Returns the credentials for a given credentials provider
     *
     * @param credentialsProviderName the name of the credentials provider, which can be used to retrieve custom configuration
     * @return the credentials
     */
    Map getCredentials(String credentialsProviderName);

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy