Package com.rabbitmq.client.amqp.oauth2
Class HttpTokenRequester
java.lang.Object
com.rabbitmq.client.amqp.oauth2.HttpTokenRequester
- All Implemented Interfaces:
TokenRequester
Token requester using HTTP(S) to request an OAuth2 Access token.
Uses HttpClient
for the HTTP operations.
-
Constructor Summary
ConstructorDescriptionHttpTokenRequester
(String tokenEndpointUri, String clientId, String clientSecret, String grantType, Map<String, String> parameters, Consumer<HttpClient.Builder> clientBuilderConsumer, Consumer<HttpRequest.Builder> requestBuilderConsumer, TokenParser parser) -
Method Summary
-
Constructor Details
-
HttpTokenRequester
public HttpTokenRequester(String tokenEndpointUri, String clientId, String clientSecret, String grantType, Map<String, String> parameters, Consumer<HttpClient.Builder> clientBuilderConsumer, Consumer<HttpRequest.Builder> requestBuilderConsumer, TokenParser parser)
-
-
Method Details
-
request
Description copied from interface:TokenRequester
Request a token.- Specified by:
request
in interfaceTokenRequester
- Returns:
- the token
-