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

com.rabbitmq.client.impl.DefaultCredentialsProvider Maven / Gradle / Ivy

Go to download

The RabbitMQ Java client library allows Java applications to interface with RabbitMQ.

There is a newer version: 5.22.0
Show newest version
package com.rabbitmq.client.impl;

/**
 * Default implementation of a CredentialsProvider which simply holds a static
 * username and password.
 *
 * @since 4.5.0
 */
public class DefaultCredentialsProvider implements CredentialsProvider {

    private final String username;
    private final String password;

    public DefaultCredentialsProvider(String username, String password) {
        this.username = username;
        this.password = password;
    }

    @Override
    public String getUsername() {
        return username;
    }

    @Override
    public String getPassword() {
        return password;
    }
    
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy