Uses of Record Class
org.apache.juneau.rest.auth.oauth.flow.OAuthToken
Packages that use OAuthToken
Package
Description
Role-neutral OAuth 2.0 grant-flow helpers.
Client-side OAuth 2.1 token acquisition for the Model Context Protocol
2026-07-28 revision.OAuth 2.0 / OIDC integration for the Juneau REST server.
OpenID Connect Relying Party (RP) login support for Juneau REST servers.
-
Uses of OAuthToken in org.apache.juneau.rest.auth.oauth.flow
Methods in org.apache.juneau.rest.auth.oauth.flow that return OAuthTokenModifier and TypeMethodDescriptionOAuthClientCredentialsFlow.acquire()Acquires a token from the IdP.OAuthRefreshTokenFlow.acquire()Acquires a fresh access token.OAuthAuthorizationCodeFlow.exchange(String code, com.nimbusds.oauth2.sdk.pkce.CodeVerifier codeVerifier) Exchanges the authorization code returned by the IdP for an access token.static OAuthTokenFlows.send(com.nimbusds.oauth2.sdk.TokenRequest req, Duration timeout, Consumer<com.nimbusds.oauth2.sdk.http.HTTPRequest> httpConfigurator) Sends the suppliedTokenRequestvia Nimbus's HTTP client and maps the response toOAuthToken. -
Uses of OAuthToken in org.apache.juneau.rest.client.mcp.auth
Methods in org.apache.juneau.rest.client.mcp.auth that return OAuthTokenModifier and TypeMethodDescriptionRuns the full interactive acquisition: starts the loopback listener, opens the authorization URL, waits for the redirect, validates it, and exchanges the code for a token.McpAuthorizationCodeAcquirer.handleCallback(OAuthAuthorizationCodeFlow flow, URI callbackUri) Validates a loopback callback and exchanges the authorization code for a token. -
Uses of OAuthToken in org.apache.juneau.rest.server.auth.oauth
Methods in org.apache.juneau.rest.server.auth.oauth that return OAuthTokenModifier and TypeMethodDescriptionCachingClientCredentialsFlow.acquire()Acquires a token, returning the cached token when a fresh one is present.Methods in org.apache.juneau.rest.server.auth.oauth that return types with arguments of type OAuthTokenModifier and TypeMethodDescriptionRetrieves a non-expired token entry.Methods in org.apache.juneau.rest.server.auth.oauth with parameters of type OAuthTokenModifier and TypeMethodDescriptionvoidBoundedLruTokenCache.putToken(String key, OAuthToken token) voidTokenCache.putToken(String key, OAuthToken token) Stores or replaces a token entry. -
Uses of OAuthToken in org.apache.juneau.rest.server.auth.oidc.rp
Methods in org.apache.juneau.rest.server.auth.oidc.rp that return types with arguments of type OAuthToken