OAuth2ClientBuilder

class OAuth2ClientBuilder(issuerUrl: String, clientId: String, scope: List<String>)

A Java-idiomatic builder for creating instances of OAuth2Client.

This builder provides method-chaining setters for optional parameters and delegates to the Kotlin OAuth2ClientBuilder for the actual construction.

Parameters

issuerUrl

The base URL of the Authorization Server.

clientId

The client ID of the application.

scope

The OAuth 2.0 scopes the application is requesting.

Constructors

Link copied to clipboard
constructor(issuerUrl: String, clientId: String, scope: List<String>)

Functions

Link copied to clipboard

Creates an OAuth2Client instance with the configured parameters.

Link copied to clipboard

Sets the ACR values.

Link copied to clipboard

Sets the HTTP executor used for all network requests.

Link copied to clipboard

Sets the authorization server ID.

Link copied to clipboard

Sets the cache for optimizing network calls.

Link copied to clipboard

Sets the client secret for confidential clients.

Link copied to clipboard

Sets the clock used for time-sensitive operations.

Link copied to clipboard

Sets the dispatcher for compute-bound operations.

Link copied to clipboard

Sets the dispatcher for IO-bound operations.