Class OidcSupport.Builder
- java.lang.Object
- 
- io.helidon.security.providers.oidc.OidcSupport.Builder
 
- 
- All Implemented Interfaces:
- Builder<OidcSupport>,- Supplier<OidcSupport>
 - Enclosing class:
- OidcSupport
 
 public static class OidcSupport.Builder extends Object implements Builder<OidcSupport> A fluent API builder forOidcSupport.
- 
- 
Method SummaryAll Methods Instance Methods Concrete Methods Modifier and Type Method Description OidcSupport.BuilderaddTenantConfigFinder(TenantConfigFinder configFinder)Add specificTenantConfigFinderimplementation.OidcSupport.BuilderaddTenantConfigFinder(TenantConfigFinder configFinder, int priority)Add specificTenantConfigFinderimplementation with specific priority.OidcSupportbuild()Build the instance from this builder.OidcSupport.Builderconfig(Config config)Config located at the provider's key to readOidcConfig.OidcSupport.Builderconfig(Config config, String providerName)Config located either at the configuration root, or at the provider node.OidcSupport.Builderconfig(OidcConfig config)Use the providedOidcConfigfor this builder.OidcSupport.BuilderdiscoverTenantConfigProviders(boolean discoverConfigProviders)Whether to allowTenantConfigProviderservice loader discovery.OidcSupport.Builderenabled(boolean enabled)You can disable the OIDC support in case it should not be used.
 
- 
- 
- 
Method Detail- 
buildpublic OidcSupport build() Description copied from interface:BuilderBuild the instance from this builder.- Specified by:
- buildin interface- Builder<OidcSupport>
- Returns:
- instance of the built type
 
 - 
configpublic OidcSupport.Builder config(Config config) Config located at the provider's key to readOidcConfig.- Parameters:
- config- configuration at the node of the provider
- Returns:
- updated builder instance
 
 - 
configpublic OidcSupport.Builder config(OidcConfig config) Use the providedOidcConfigfor this builder.- Parameters:
- config- OIDC configuration to use
- Returns:
- updated builder instance
 
 - 
configpublic OidcSupport.Builder config(Config config, String providerName) Config located either at the configuration root, or at the provider node.- Parameters:
- config- configuration to use
- providerName- name of the security provider used for the- OidcSupportconfiguration
- Returns:
- updated builder instance
 
 - 
enabledpublic OidcSupport.Builder enabled(boolean 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
 
 - 
discoverTenantConfigProviderspublic OidcSupport.Builder discoverTenantConfigProviders(boolean discoverConfigProviders) Whether to allowTenantConfigProviderservice loader discovery. Default value istrue.- Parameters:
- discoverConfigProviders- whether to use service loader
- Returns:
- updated builder instance
 
 - 
addTenantConfigFinderpublic OidcSupport.Builder addTenantConfigFinder(TenantConfigFinder configFinder) Add specificTenantConfigFinderimplementation. PriorityBUILDER_PRIORITYis used.- Parameters:
- configFinder- config finder implementation
- Returns:
- updated builder instance
 
 - 
addTenantConfigFinderpublic OidcSupport.Builder addTenantConfigFinder(TenantConfigFinder configFinder, int priority) Add specificTenantConfigFinderimplementation with specific priority.- Parameters:
- configFinder- config finder implementation
- priority- finder priority
- Returns:
- updated builder instance
 
 
- 
 
-