Uses of Class
org.apache.juneau.rest.client.mcp.auth.McpTokenProvider.Builder
Packages that use McpTokenProvider.Builder
Package
Description
Client-side OAuth 2.1 token acquisition for the Model Context Protocol
2026-07-28 revision.-
Uses of McpTokenProvider.Builder in org.apache.juneau.rest.client.mcp.auth
Methods in org.apache.juneau.rest.client.mcp.auth that return McpTokenProvider.BuilderModifier and TypeMethodDescriptionstatic McpTokenProvider.BuilderMcpTokenProvider.clientCredentials()Creates a builder for the client-credentials grant.Sets the OAuth client ID.McpTokenProvider.Builder.clientSecret(String value) Sets the OAuth client secret as a literal string.McpTokenProvider.Builder.clientSecretSupplier(Supplier<String> value) Sets the OAuth client secret via a supplier.Sets the clock used for token-expiry comparisons.static McpTokenProvider.BuilderMcpClientRegistrations.configure(McpTokenProvider.Builder builder, McpClientRegistration registration) Applies a DCR-issued registration'sclient_idand optionalclient_secretonto anMcpTokenProvider.Builder(client-credentials / refresh modes).McpTokenProvider.Builder.expirySkew(Duration value) Sets the skew subtracted from a cached token's expiry before it is treated as expired.McpTokenProvider.Builder.httpRequestConfigurator(Consumer<com.nimbusds.oauth2.sdk.http.HTTPRequest> value) Sets a callback that customizes the NimbusHTTPRequestfor each token request.McpTokenProvider.Builder.httpTimeout(Duration value) Sets the connect/read timeout applied to each token request.static McpTokenProvider.BuilderMcpTokenProvider.refreshToken(String initialRefreshToken) Creates a builder for the refresh-token grant, seeded with the initial refresh token.Sets the RFC 8707resourceindicator (the canonical MCP server URI) sent on every token request.Adds requested OAuth scopes.McpTokenProvider.Builder.tokenEndpoint(URI value) Sets the token endpoint URL.Methods in org.apache.juneau.rest.client.mcp.auth with parameters of type McpTokenProvider.BuilderModifier and TypeMethodDescriptionstatic McpTokenProvider.BuilderMcpClientRegistrations.configure(McpTokenProvider.Builder builder, McpClientRegistration registration) Applies a DCR-issued registration'sclient_idand optionalclient_secretonto anMcpTokenProvider.Builder(client-credentials / refresh modes).Constructors in org.apache.juneau.rest.client.mcp.auth with parameters of type McpTokenProvider.BuilderModifierConstructorDescriptionprotectedConstructor.