Class HttpTokenRequester.Builder
java.lang.Object
com.rabbitmq.client.amqp.oauth2.HttpTokenRequester.Builder
- Enclosing class:
HttpTokenRequester
Builder for
HttpTokenRequester.-
Method Summary
Modifier and TypeMethodDescriptionbuild()TLS cipher suites for HTTPS requests.clientSecret(String clientSecret) connectionConfigurator(Consumer<HttpURLConnection> connectionConfigurator) Sets a configurator applied to the connection after all library defaults (timeouts, headers,Authorization) have been set.namedGroups(String... namedGroups) TLS named groups (key exchange groups) for HTTPS requests, e.g.parameters(Map<String, String> parameters) parser(TokenParser parser) sslContext(SSLContext sslContext) SSLContextto use for HTTPS requests.tokenEndpointUri(String tokenEndpointUri)
-
Method Details
-
tokenEndpointUri
-
clientId
-
clientSecret
-
grantType
-
parameter
-
parameters
-
parser
-
sslContext
SSLContextto use for HTTPS requests.Required for an
httpstoken endpoint URI, fornamedGroups(String...)and forciphers(String...).- Parameters:
sslContext- the SSL context- Returns:
- this builder
-
namedGroups
TLS named groups (key exchange groups) for HTTPS requests, e.g.X25519MLKEM768for post-quantum key exchange.Requires
sslContext(SSLContext)to be set, and Java 20 or more.- Parameters:
namedGroups- the named groups, in order of preference- Returns:
- this builder
-
ciphers
TLS cipher suites for HTTPS requests.Requires
sslContext(SSLContext)to be set.- Parameters:
ciphers- the cipher suites, in order of preference- Returns:
- this builder
-
connectionConfigurator
public HttpTokenRequester.Builder connectionConfigurator(Consumer<HttpURLConnection> connectionConfigurator) Sets a configurator applied to the connection after all library defaults (timeouts, headers,Authorization) have been set. The configurator runs last and may override any of them.- Parameters:
connectionConfigurator- connection configurator- Returns:
- this builder
-
build
-