Class IdcsRoleMapperRxProvider.Builder<B extends IdcsRoleMapperRxProvider.Builder<B>>
- java.lang.Object
-
- io.helidon.security.providers.idcs.mapper.IdcsRoleMapperRxProviderBase.Builder<IdcsRoleMapperRxProvider.Builder<B>>
-
- io.helidon.security.providers.idcs.mapper.IdcsRoleMapperRxProvider.Builder<B>
-
- Type Parameters:
B
- type of builder extending this builder
- All Implemented Interfaces:
Builder<IdcsRoleMapperRxProvider>
,Supplier<IdcsRoleMapperRxProvider>
- Enclosing class:
- IdcsRoleMapperRxProvider
public static class IdcsRoleMapperRxProvider.Builder<B extends IdcsRoleMapperRxProvider.Builder<B>> extends IdcsRoleMapperRxProviderBase.Builder<IdcsRoleMapperRxProvider.Builder<B>> implements Builder<IdcsRoleMapperRxProvider>
Fluent API builder forIdcsRoleMapperRxProvider
.
-
-
Constructor Summary
Constructors Modifier Constructor Description protected
Builder()
Default contructor.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description IdcsRoleMapperRxProvider
build()
Build the instance from this builder.B
config(Config config)
Update this builder state from configuration.B
roleCache(EvictableCache<String,List<Grant>> roleCache)
Use explicitEvictableCache
for role caching.-
Methods inherited from class io.helidon.security.providers.idcs.mapper.IdcsRoleMapperRxProviderBase.Builder
addSubjectType, defaultIdcsSubjectType, oidcConfig, oidcConfig, subjectTypes
-
-
-
-
Method Detail
-
build
public IdcsRoleMapperRxProvider build()
Description copied from interface:Builder
Build the instance from this builder.- Specified by:
build
in interfaceBuilder<B extends IdcsRoleMapperRxProvider.Builder<B>>
- Returns:
- instance of the built type
-
config
public B config(Config config)
Update this builder state from configuration. Expects:- oidc-config to load an instance of
OidcConfig
- cache-config (optional) to load an instance of
EvictableCache
for role caching
- Overrides:
config
in classIdcsRoleMapperRxProviderBase.Builder<IdcsRoleMapperRxProvider.Builder<B extends IdcsRoleMapperRxProvider.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
-
roleCache
public B roleCache(EvictableCache<String,List<Grant>> roleCache)
Use explicitEvictableCache
for role caching.- Parameters:
roleCache
- cache to use- Returns:
- update builder instance
-
-