Class OAuthClientCredentialsFlow
java.lang.Object
org.apache.juneau.rest.auth.oauth.flow.OAuthClientCredentialsFlow
Client-credentials grant (RFC 6749 §4.4) flow helper.
The neutral core performs a single token acquisition and does NOT cache; token caching is layered on top by
the caller (e.g. the server-side CachingClientCredentialsFlow decorator or the MCP client's token
provider). Supports RFC 8707 resource-indicator binding via OAuthClientCredentialsFlow.Builder.resource(URI).
Usage
See Also:
- Since:
- 10.0.0
-
Constructor Details
-
OAuthClientCredentialsFlow
Constructor.- Parameters:
b- The builder.
-
-
Method Details
-
create
Static creator.- Returns:
- A new builder.
-
acquire
Acquires a token from the IdP.- Returns:
- The acquired token.
-