Class IdcsRoleMapperProviderBase.Builder<B extends IdcsRoleMapperProviderBase.Builder<B>>
- java.lang.Object
- 
- io.helidon.security.providers.idcs.mapper.IdcsRoleMapperProviderBase.Builder<B>
 
- 
- Type Parameters:
- B- Type of the extending builder
 - Direct Known Subclasses:
- IdcsMtRoleMapperProvider.Builder,- IdcsRoleMapperProvider.Builder
 - Enclosing class:
- IdcsRoleMapperProviderBase
 
 public static class IdcsRoleMapperProviderBase.Builder<B extends IdcsRoleMapperProviderBase.Builder<B>> extends Object Fluent API builder forIdcsRoleMapperProviderBase.
- 
- 
Constructor SummaryConstructors Modifier Constructor Description protectedBuilder()Default constructor.
 - 
Method SummaryAll Methods Instance Methods Concrete Methods Modifier and Type Method Description BaddSubjectType(SubjectType type)Add a supported subject type.Bconfig(Config config)Update this builder state from configuration.BdefaultIdcsSubjectType(String subjectType)Configure subject type to use when requesting roles from IDCS.protected OidcConfigoidcConfig()Get the configuration to access IDCS instance.BoidcConfig(OidcConfig config)Use explicitOidcConfiginstance, e.g.BsubjectTypes(SubjectType... types)Configure supported subject types.
 
- 
- 
- 
Method Detail- 
configpublic B config(Config config) Update 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"
 - Parameters:
- config- current node must have "oidc-config" as one of its children
- Returns:
- updated builder instance
 
- oidc-config to load an instance of 
 - 
oidcConfigpublic B oidcConfig(OidcConfig config) Use explicitOidcConfiginstance, e.g. when using it also for OIDC provider.- Parameters:
- config- oidc specific configuration, must have at least identity endpoint and client credentials configured
- Returns:
- updated builder instance
 
 - 
oidcConfigprotected OidcConfig oidcConfig() Get the configuration to access IDCS instance.- Returns:
- oidc config
 
 - 
subjectTypespublic B subjectTypes(SubjectType... types) Configure supported subject types. By defaultSubjectType.USERis used if none configured.- Parameters:
- types- types to configure as supported for mapping
- Returns:
- updated builder instance
 
 - 
defaultIdcsSubjectTypepublic B defaultIdcsSubjectType(String subjectType) Configure subject type to use when requesting roles from IDCS. Can be eitherIdcsRoleMapperProviderBase.IDCS_SUBJECT_TYPE_USERorIdcsRoleMapperProviderBase.IDCS_SUBJECT_TYPE_CLIENT. Defaults toIdcsRoleMapperProviderBase.IDCS_SUBJECT_TYPE_USER.- Parameters:
- subjectType- type of subject to use when requesting roles from IDCS
- Returns:
- updated builder instance
 
 - 
addSubjectTypepublic B addSubjectType(SubjectType type) Add a supported subject type. If none added,SubjectType.USERis used. If any added, only the ones added will be used (e.g. if you want to use bothSubjectType.USERandSubjectType.SERVICE, both need to be added.- Parameters:
- type- subject type to add to the list of supported types
- Returns:
- updated builder instance
 
 
- 
 
-