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
Constructors -
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, waitMethods inherited from interface com.rabbitmq.client.impl.CredentialsProvider
getTimeBeforeExpiration, refresh
-
Constructor Details
-
DefaultCredentialsProvider
-
-
Method Details
-
getUsername
Description copied from interface:CredentialsProviderUsername to use for authentication- Specified by:
getUsernamein interfaceCredentialsProvider- Returns:
- username
-
getPassword
Description copied from interface:CredentialsProviderPassword/secret/token to use for authentication- Specified by:
getPasswordin interfaceCredentialsProvider- Returns:
- password/secret/token
-