Class IdcsMtRoleMapperProvider.Builder<B extends IdcsMtRoleMapperProvider.Builder<B>>
- java.lang.Object
- 
- io.helidon.security.providers.idcs.mapper.IdcsRoleMapperProviderBase.Builder<IdcsMtRoleMapperProvider.Builder<B>>
- 
- io.helidon.security.providers.idcs.mapper.IdcsMtRoleMapperProvider.Builder<B>
 
 
- 
- Type Parameters:
- B- type of a descendant of this builder
 - All Implemented Interfaces:
- Builder<IdcsMtRoleMapperProvider>,- Supplier<IdcsMtRoleMapperProvider>
 - Enclosing class:
- IdcsMtRoleMapperProvider
 
 public static class IdcsMtRoleMapperProvider.Builder<B extends IdcsMtRoleMapperProvider.Builder<B>> extends IdcsRoleMapperProviderBase.Builder<IdcsMtRoleMapperProvider.Builder<B>> implements Builder<IdcsMtRoleMapperProvider> Fluent API builder forIdcsMtRoleMapperProvider.
- 
- 
Constructor SummaryConstructors Modifier Constructor Description protectedBuilder()Default constructor.
 - 
Method SummaryAll Methods Instance Methods Concrete Methods Modifier and Type Method Description IdcsMtRoleMapperProviderbuild()Build the instance from this builder.Bcache(EvictableCache<IdcsMtRoleMapperProvider.MtCacheKey,List<Grant>> roleCache)Use explicitEvictableCachefor role caching.Bconfig(Config config)Update this builder state from configuration.BidcsAppNameTokenHandler(TokenHandler idcsAppNameTokenHandler)Configure token handler for IDCS Application name.BidcsTenantTokenHandler(TokenHandler idcsTenantTokenHandler)Configure token handler for IDCS Tenant ID.BmultitenantEndpoints(IdcsMtRoleMapperProvider.MultitenancyEndpoints endpoints)Replace default endpoint provider in multitenant IDCS setup.- 
Methods inherited from class io.helidon.security.providers.idcs.mapper.IdcsRoleMapperProviderBase.BuilderaddSubjectType, defaultIdcsSubjectType, oidcConfig, oidcConfig, subjectTypes
 
- 
 
- 
- 
- 
Method Detail- 
buildpublic IdcsMtRoleMapperProvider build() Description copied from interface:BuilderBuild the instance from this builder.- Specified by:
- buildin interface- Builder<B extends IdcsMtRoleMapperProvider.Builder<B>>
- Returns:
- instance of the built type
 
 - 
configpublic B config(Config config) Description copied from class:IdcsRoleMapperProviderBase.BuilderUpdate this builder state from configuration. Expects:- oidc-config to load an instance of OidcConfig
- cache-config (optional) to load instances of EvictableCachefor caching
- default-idcs-subject-type to use when not defined in a JWT, either "user" or
      IdcsRoleMapperProviderBase.IDCS_SUBJECT_TYPE_CLIENT, defaults to "user"
 - Overrides:
- configin class- IdcsRoleMapperProviderBase.Builder<IdcsMtRoleMapperProvider.Builder<B extends IdcsMtRoleMapperProvider.Builder<B>>>
- Parameters:
- config- current node must have "oidc-config" as one of its children
- Returns:
- updated builder instance
 
- oidc-config to load an instance of 
 - 
idcsAppNameTokenHandlerpublic B idcsAppNameTokenHandler(TokenHandler idcsAppNameTokenHandler) Configure token handler for IDCS Application name. By default the header "X-RESOURCE-SERVICE-INSTANCE-IDENTITY-APPNAME" is used.- Parameters:
- idcsAppNameTokenHandler- new token handler to extract IDCS application name
- Returns:
- updated builder instance
 
 - 
idcsTenantTokenHandlerpublic B idcsTenantTokenHandler(TokenHandler idcsTenantTokenHandler) Configure token handler for IDCS Tenant ID. By default the header "X-USER-IDENTITY-SERVICE-GUID" is used.- Parameters:
- idcsTenantTokenHandler- new token handler to extract IDCS tenant ID
- Returns:
- updated builder instance
 
 - 
multitenantEndpointspublic B multitenantEndpoints(IdcsMtRoleMapperProvider.MultitenancyEndpoints endpoints) Replace default endpoint provider in multitenant IDCS setup.- Parameters:
- endpoints- endpoints to retrieve tenant specific token and asserter endpoints
- Returns:
- updated builder instance
 
 - 
cachepublic B cache(EvictableCache<IdcsMtRoleMapperProvider.MtCacheKey,List<Grant>> roleCache) Use explicitEvictableCachefor role caching.- Parameters:
- roleCache- cache to use
- Returns:
- updated builder instance
 
 
- 
 
-