Class WebAuthStatus
java.lang.Object
com.inductiveautomation.perspective.gateway.api.WebAuthStatus
Encapsulates a snapshot of authentication and authorization state
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic classstatic classstatic classstatic class -
Method Summary
Modifier and TypeMethodDescriptionstatic @NonNull WebAuthStatus.Builderbuilder()booleancanLogin()diff(WebAuthStatus that) static WebAuthStatus.Diffdiff(WebAuthStatus webAuthStatusA, WebAuthStatus webAuthStatusB) boolean@NonNull AuditActorgetIdp()@NonNull com.inductiveautomation.ignition.common.gson.JsonObject@NonNull com.google.common.collect.ImmutableSet<SecurityLevelConfig> @NonNull Optional<WebAuthUser> getUser()inthashCode()booleanbooleanbooleantoString()
-
Method Details
-
isAuthenticationRequired
public boolean isAuthenticationRequired() -
isAuthenticated
public boolean isAuthenticated() -
isAuthorized
public boolean isAuthorized() -
canLogin
public boolean canLogin()- Returns:
- whether the session's project has at least one selectable login Identity Provider, i.e.
whether a login is possible. See
canLogin.
-
getUser
-
getSecurityLevels
-
getIdp
-
getIdpAttributes
public @NonNull com.inductiveautomation.ignition.common.gson.JsonObject getIdpAttributes() -
getAuditActor
- Returns:
- an
AuditActorderived from a single snapshot of this status. ReturnsAuditActor.UNAUTHENTICATEDif no user is present; otherwise anAuditActor.IdpUserbuilt from the IdP name (if any) and the username. Reading the actor from this snapshot avoids the race where IdP and username are fetched from different status instances.
-
diff
-
diff
-
equals
-
hashCode
-
toString
-
builder
-