Class OidcFeature.Builder
java.lang.Object
io.helidon.security.providers.oidc.OidcFeature.Builder
- All Implemented Interfaces:
Builder<OidcFeature.Builder,,OidcFeature> Supplier<OidcFeature>
- Enclosing class:
OidcFeature
public static class OidcFeature.Builder
extends Object
implements Builder<OidcFeature.Builder,OidcFeature>
A fluent API builder for
OidcFeature.-
Method Summary
Modifier and TypeMethodDescriptionaddTenantConfigFinder(TenantConfigFinder configFinder) Add specificTenantConfigFinderimplementation.addTenantConfigFinder(TenantConfigFinder configFinder, int priority) Add specificTenantConfigFinderimplementation with specific priority.build()Build the instance from this builder.Config located at the provider's key to readOidcConfig.Config located either at the configuration root, or at the provider node.config(OidcConfig config) Use the providedOidcConfigfor this builder.discoverTenantConfigProviders(boolean discoverConfigProviders) Whether to allowTenantConfigProviderservice loader discovery.enabled(boolean enabled) You can disable the OIDC support in case it should not be used.
-
Method Details
-
build
Description copied from interface:BuilderBuild the instance from this builder.- Specified by:
buildin interfaceBuilder<OidcFeature.Builder,OidcFeature> - Returns:
- instance of the built type
-
config
Config located at the provider's key to readOidcConfig.- Parameters:
config- configuration at the node of the provider- Returns:
- updated builder instance
-
config
Use the providedOidcConfigfor this builder.- Parameters:
config- OIDC configuration to use- Returns:
- updated builder instance
-
config
Config located either at the configuration root, or at the provider node.- Parameters:
config- configuration to useproviderName- name of the security provider used for theOidcFeatureconfiguration- Returns:
- updated builder instance
-
enabled
You can disable the OIDC support in case it should not be used. This can also be achieved through configuration, by settingsecurity.enabledtofalsewhen using root configuration, or by settingenabledtofalsewhen using provider configuration node.- Parameters:
enabled- whether the support should be enabled or not- Returns:
- updated builder instance
-
discoverTenantConfigProviders
Whether to allowTenantConfigProviderservice loader discovery. Default value istrue.- Parameters:
discoverConfigProviders- whether to use service loader- Returns:
- updated builder instance
-
addTenantConfigFinder
Add specificTenantConfigFinderimplementation. PriorityBUILDER_WEIGHTis used.- Parameters:
configFinder- config finder implementation- Returns:
- updated builder instance
-
addTenantConfigFinder
Add specificTenantConfigFinderimplementation with specific priority.- Parameters:
configFinder- config finder implementationpriority- finder priority- Returns:
- updated builder instance
-