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 Summary
Modifier 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
-
setSecurityZones
public WebAuthUserContext.Builder setSecurityZones(@Nullable com.google.common.collect.ImmutableCollection<String> securityZones) - Parameters:
securityZones- anImmutableCollectioncontaining the names of the security zones assigned to the user- Returns:
- this
WebAuthUserContext.Builder
-
setWebAuthUser
- Parameters:
webAuthUser- theWebAuthUserwhich 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
-
setSecurityLevels
public 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 anImmutableCollectionofSecurityLevelConfigobjects- Returns:
- this
WebAuthUserContext.Builder
-
build
- Returns:
- a new
WebAuthUserContextinstance with the field values set using this builder's setter methods
-