Package com.rabbitmq.client.impl
Class DefaultCredentialsProvider
- java.lang.Object
-
- com.rabbitmq.client.impl.DefaultCredentialsProvider
-
- All Implemented Interfaces:
CredentialsProvider
public class DefaultCredentialsProvider extends Object implements CredentialsProvider
Default implementation of a CredentialsProvider which simply holds a static username and password.- Since:
- 4.5.0
-
-
Constructor Summary
Constructors Constructor Description DefaultCredentialsProvider(String username, String password)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description String
getPassword()
String
getUsername()
-
-
-
Method Detail
-
getUsername
public String getUsername()
- Specified by:
getUsername
in interfaceCredentialsProvider
-
getPassword
public String getPassword()
- Specified by:
getPassword
in interfaceCredentialsProvider
-
-