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