Package com.rabbitmq.client.impl
Class DefaultCredentialsProvider
java.lang.Object
com.rabbitmq.client.impl.DefaultCredentialsProvider
- All Implemented Interfaces:
CredentialsProvider
Default implementation of a CredentialsProvider which simply holds a static
username and password.
- Since:
- 4.5.0
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionPassword/secret/token to use for authenticationUsername to use for authenticationMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface com.rabbitmq.client.impl.CredentialsProvider
getTimeBeforeExpiration, refresh
-
Constructor Details
-
DefaultCredentialsProvider
-
-
Method Details
-
getUsername
Description copied from interface:CredentialsProvider
Username to use for authentication- Specified by:
getUsername
in interfaceCredentialsProvider
- Returns:
- username
-
getPassword
Description copied from interface:CredentialsProvider
Password/secret/token to use for authentication- Specified by:
getPassword
in interfaceCredentialsProvider
- Returns:
- password/secret/token
-