Class WebAuthUserContext.Builder
- java.lang.Object
- 
- com.inductiveautomation.ignition.common.auth.web.WebAuthUserContext.Builder
 
- 
- Enclosing class:
- WebAuthUserContext
 
 public static class WebAuthUserContext.Builder extends java.lang.ObjectProvides a fluent-API (builder-style) pattern for creating newWebAuthUserContextobjects
- 
- 
Method SummaryAll Methods Instance Methods Concrete Methods Modifier and Type Method Description WebAuthUserContextbuild()WebAuthUserContext.BuildersetIdp(java.lang.String idp)WebAuthUserContext.BuildersetSecurityLevels(com.google.common.collect.ImmutableCollection<SecurityLevelConfig> securityLevels)WebAuthUserContext.BuildersetSecurityZones(com.google.common.collect.ImmutableCollection<java.lang.String> securityZones)WebAuthUserContext.BuildersetWebAuthUser(WebAuthUser webAuthUser)
 
- 
- 
- 
Method Detail- 
setIdppublic WebAuthUserContext.Builder setIdp(@Nullable java.lang.String idp) - 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<java.lang.String> securityZones) - Parameters:
- securityZones- an- ImmutableCollectioncontaining the names of the security zones assigned to the user
- Returns:
- this WebAuthUserContext.Builder
 
 - 
setWebAuthUserpublic WebAuthUserContext.Builder setWebAuthUser(@Nullable WebAuthUser webAuthUser) - 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
 
 - 
buildpublic WebAuthUserContext build() - Returns:
- a new WebAuthUserContextinstance with the field values set using this builder's setter methods
 
 
- 
 
-