Class WebAuthUserContext.Builder
java.lang.Object
com.inductiveautomation.ignition.common.auth.web.WebAuthUserContext.Builder
- Enclosing class:
- WebAuthUserContext
Provides a fluent-API (builder-style) pattern for creating new 
WebAuthUserContext objects- 
Method SummaryModifier and TypeMethodDescriptionbuild()setSecurityLevels(com.google.common.collect.ImmutableCollection<SecurityLevelConfig> securityLevels) setSecurityZones(com.google.common.collect.ImmutableCollection<String> securityZones) setWebAuthUser(WebAuthUser webAuthUser) 
- 
Method Details- 
setIdp- Parameters:
- idp- the name of the IdP from where the user authenticated. set to null if the user is not authenticated. defaults to null if not called.
- Returns:
- this WebAuthUserContext.Builder
 
- 
setSecurityZonespublic WebAuthUserContext.Builder setSecurityZones(@Nullable com.google.common.collect.ImmutableCollection<String> securityZones) - Parameters:
- securityZones- an- ImmutableCollectioncontaining the names of the security zones assigned to the user
- Returns:
- this WebAuthUserContext.Builder
 
- 
setWebAuthUser- Parameters:
- webAuthUser- the- WebAuthUserwhich contains attributes about the authenticated user such as their username and roles. set to null if the user is not authenticated. defaults to null if not called.
- Returns:
- this WebAuthUserContext.Builder
 
- 
setSecurityLevelspublic WebAuthUserContext.Builder setSecurityLevels(@Nullable com.google.common.collect.ImmutableCollection<SecurityLevelConfig> securityLevels) - Parameters:
- securityLevels- the security levels granted to the user, represented in tree-form as an- ImmutableCollectionof- SecurityLevelConfigobjects
- Returns:
- this WebAuthUserContext.Builder
 
- 
build- Returns:
- a new WebAuthUserContextinstance with the field values set using this builder's setter methods
 
 
-