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.Builder<B>,,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.Builder<B>,IdcsMtRoleMapperRxProvider>
Fluent API builder for
IdcsMtRoleMapperRxProvider.-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild()Build the instance from this builder.cache(EvictableCache<IdcsMtRoleMapperRxProvider.MtCacheKey, List<Grant>> roleCache) Use explicitEvictableCachefor role caching.Update this builder state from configuration.idcsAppNameTokenHandler(TokenHandler idcsAppNameTokenHandler) Configure token handler for IDCS Application name.idcsTenantTokenHandler(TokenHandler idcsTenantTokenHandler) Configure token handler for IDCS Tenant ID.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
-
Constructor Details
-
Builder
protected Builder()Default constructor.
-
-
Method Details
-
build
Description copied from interface:BuilderBuild the instance from this builder.- Specified by:
buildin interfaceBuilder<IdcsMtRoleMapperRxProvider.Builder<B extends IdcsMtRoleMapperRxProvider.Builder<B>>,IdcsMtRoleMapperRxProvider> - Returns:
- instance of the built type
-
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
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
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
Replace default endpoint provider in multitenant IDCS setup.- Parameters:
endpoints- endpoints to retrieve tenant specific token and asserter endpoints- Returns:
- updated builder instance
-
cache
Use explicitEvictableCachefor role caching.- Parameters:
roleCache- cache to use- Returns:
- updated builder instance
-