Class TenantConfig.Builder
java.lang.Object
io.helidon.security.providers.oidc.common.BaseBuilder<TenantConfig.Builder, TenantConfig>
io.helidon.security.providers.oidc.common.TenantConfig.Builder
- All Implemented Interfaces:
Builder<TenantConfig.Builder, TenantConfig>, Supplier<TenantConfig>
- Enclosing interface:
TenantConfig
public static final class TenantConfig.Builder
extends BaseBuilder<TenantConfig.Builder, TenantConfig>
A fluent API
Builder to build instances of TenantConfig.-
Method Summary
Modifier and TypeMethodDescriptionbuild()Build the instance from this builder.Update this builder with values from configuration.Name of the tenant.Methods inherited from class BaseBuilder
audience, authorizationEndpointUri, baseScopes, checkAudience, clientId, clientSecret, clientTimeout, decryptionKeys, decryptionKeys, identityUri, introspectEndpointUri, issuer, jwkCircuitBreaker, jwkCircuitBreaker, jwkCircuitBreaker, jwkCircuitBreaker, jwkRetry, jwkRetry, jwkRetry, jwkRetry, jwkTimeout, jwkTimeout, jwkTimeout, jwkTimeout, logoutEndpointUri, oidcMetadata, oidcMetadata, oidcMetadataJsonObject, oidcMetadataWellKnown, optionalAudience, realm, scopeAudience, serverType, signJwk, signJwk, signJwk, tokenEndpointAuthentication, tokenEndpointUri, validateJwtWithJwkModifier and TypeMethodDescriptionAudience of issued tokens.URI of an authorization endpoint used to redirect users to for logging-in.baseScopes(String scopes) Configure base scopes.checkAudience(boolean checkAudience) Configure audience claim check.Client ID as generated by OIDC server.clientSecret(String clientSecret) Client secret as generated by OIDC server.clientTimeout(Duration duration) Timeout of calls using web client.decryptionKeys(Resource resource) A resource pointing to JWK with private keys used for JWE content key decryption.decryptionKeys(JwkKeys contentKeyDecryptionKeys) SetJwkKeysused for JWE content key decryption.identityUri(URI uri) URI of the identity server, base used to retrieve OIDC metadata.introspectEndpointUri(URI uri) Endpoint to use to validate JWT.Issuer of issued tokens.jwkCircuitBreaker(CircuitBreaker jwkCircuitBreaker) Circuit breaker around each complete retry batch used to load OIDC metadata and signing JWKs; by default, the circuit opens after one exhausted batch and permits a recovery probe after 5 seconds.jwkCircuitBreaker(CircuitBreakerConfig jwkCircuitBreaker) Circuit breaker used while loading OIDC metadata and signing JWK.Circuit breaker used while loading OIDC metadata and signing JWK.jwkCircuitBreaker(Supplier<? extends CircuitBreaker> supplier) Circuit breaker used while loading OIDC metadata and signing JWK.Retry used while loading OIDC metadata and signing JWKs; by default, it wraps two timeout-guarded attempts within an 11-second overall timeout.jwkRetry(RetryConfig jwkRetry) Retry used while loading OIDC metadata and signing JWK.jwkRetry(Consumer<RetryConfig.Builder> consumer) Retry used while loading OIDC metadata and signing JWK.Retry used while loading OIDC metadata and signing JWK.jwkTimeout(Timeout jwkTimeout) Timeout applied to each attempt to load OIDC metadata and signing JWKs; it defaults to 5 seconds, must be positive, must execute on the current thread, and must not exceed the retry overall timeout.jwkTimeout(TimeoutConfig jwkTimeout) Timeout applied to each attempt to load OIDC metadata and signing JWK.jwkTimeout(Consumer<TimeoutConfig.Builder> consumer) Timeout applied to each attempt to load OIDC metadata and signing JWK.jwkTimeout(Supplier<? extends Timeout> supplier) Timeout applied to each attempt to load OIDC metadata and signing JWK.logoutEndpointUri(URI logoutEndpointUri) URI of a logout endpoint used to redirect users to for logging-out.oidcMetadata(Resource resource) Resource configuration for OIDC Metadata containing endpoints to various identity services, as well as information about the identity server.oidcMetadata(ResourceConfig resourceConfig) Resource configuration for OIDC metadata.oidcMetadataJsonObject(JsonObject metadata) Helidon JSON with the OIDC metadata.oidcMetadataWellKnown(boolean useWellKnown) If set to true, metadata will be loaded from default (well known) location, unless it is explicitly defined using oidc-metadata-resource.optionalAudience(boolean optional) Allow audience claim to be optional.Realm to return when not redirecting and an error occurs that sends back WWW-Authenticate header.scopeAudience(String audience) Audience of the scope required by this application.serverType(String type) Configure one of the supported types of identity servers.A resource pointing to JWK with public keys of signing certificates used to validate JWT.signJwk(ResourceConfig resourceConfig) Resource configuration pointing to JWK with public keys of signing certificates used to validate JWT.SetJwkKeysto use for JWT validation.tokenEndpointAuthentication(OidcConfig.ClientAuthentication tokenEndpointAuthentication) Type of authentication to use when invoking the token endpoint.tokenEndpointUri(URI uri) URI of a token endpoint used to obtain a JWT based on the authentication code.validateJwtWithJwk(Boolean useJwk) Use JWK (a set of keys to validate signatures of JWT) to validate tokens.Methods inherited from class Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface Builder
get, identity, updateModifier and TypeMethodDescriptiondefault TenantConfigget()default TenantConfig.Builderidentity()Instance of this builder as the correct type.default TenantConfig.Builderupdate(Consumer<TenantConfig.Builder> consumer) Update the builder in a fluent API way.
-
Method Details
-
name
Name of the tenant.- Parameters:
name- tenant name- Returns:
- updated builder instance
-
config
Description copied from class:BaseBuilderUpdate this builder with values from configuration.- Overrides:
configin classBaseBuilder<TenantConfig.Builder, TenantConfig>- Parameters:
config- provided config- Returns:
- updated builder instance
-
build
Description copied from interface:BuilderBuild the instance from this builder.- Returns:
- instance of the built type
-