Class IdcsMtRoleMapperRxProvider.Builder<B extends IdcsMtRoleMapperRxProvider.Builder<B>>
- java.lang.Object
-
- io.helidon.security.providers.idcs.mapper.IdcsRoleMapperRxProviderBase.Builder<IdcsMtRoleMapperRxProvider.Builder<B>>
-
- io.helidon.security.providers.idcs.mapper.IdcsMtRoleMapperRxProvider.Builder<B>
-
- Type Parameters:
B- type of a descendant of this builder
- All Implemented Interfaces:
Builder<IdcsMtRoleMapperRxProvider>,Supplier<IdcsMtRoleMapperRxProvider>
- Enclosing class:
- IdcsMtRoleMapperRxProvider
public static class IdcsMtRoleMapperRxProvider.Builder<B extends IdcsMtRoleMapperRxProvider.Builder<B>> extends IdcsRoleMapperRxProviderBase.Builder<IdcsMtRoleMapperRxProvider.Builder<B>> implements Builder<IdcsMtRoleMapperRxProvider>
Fluent API builder forIdcsMtRoleMapperRxProvider.
-
-
Constructor Summary
Constructors Modifier Constructor Description protectedBuilder()Default constructor.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description IdcsMtRoleMapperRxProviderbuild()Build the instance from this builder.Bcache(EvictableCache<IdcsMtRoleMapperRxProvider.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(IdcsMtRoleMapperRxProvider.MultitenancyEndpoints endpoints)Replace default endpoint provider in multitenant IDCS setup.-
Methods inherited from class io.helidon.security.providers.idcs.mapper.IdcsRoleMapperRxProviderBase.Builder
addSubjectType, defaultIdcsSubjectType, oidcConfig, oidcConfig, subjectTypes
-
-
-
-
Method Detail
-
build
public IdcsMtRoleMapperRxProvider build()
Description copied from interface:BuilderBuild the instance from this builder.- Specified by:
buildin interfaceBuilder<B extends IdcsMtRoleMapperRxProvider.Builder<B>>- Returns:
- instance of the built type
-
config
public B config(Config config)
Description copied from class:IdcsRoleMapperRxProviderBase.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
IdcsRoleMapperRxProviderBase.IDCS_SUBJECT_TYPE_CLIENT, defaults to "user"
- Overrides:
configin classIdcsRoleMapperRxProviderBase.Builder<IdcsMtRoleMapperRxProvider.Builder<B extends IdcsMtRoleMapperRxProvider.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
-
idcsAppNameTokenHandler
public 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
-
idcsTenantTokenHandler
public 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
-
multitenantEndpoints
public B multitenantEndpoints(IdcsMtRoleMapperRxProvider.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
-
cache
public B cache(EvictableCache<IdcsMtRoleMapperRxProvider.MtCacheKey,List<Grant>> roleCache)
Use explicitEvictableCachefor role caching.- Parameters:
roleCache- cache to use- Returns:
- updated builder instance
-
-