Class WebAuthStatus
- java.lang.Object
-
- com.inductiveautomation.perspective.gateway.api.WebAuthStatus
-
public class WebAuthStatus extends java.lang.Object
Encapsulates a snapshot of authentication and authorization state
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
WebAuthStatus.Builder
static class
WebAuthStatus.Diff
static class
WebAuthStatus.GsonAdapter
static class
WebAuthStatus.PrivateGsonAdapter
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static WebAuthStatus.Builder
builder()
WebAuthStatus.Diff
diff(WebAuthStatus that)
static WebAuthStatus.Diff
diff(WebAuthStatus webAuthStatusA, WebAuthStatus webAuthStatusB)
boolean
equals(java.lang.Object o)
java.util.Optional<java.lang.String>
getIdp()
com.inductiveautomation.ignition.common.gson.JsonObject
getIdpAttributes()
com.google.common.collect.ImmutableSet<SecurityLevelConfig>
getSecurityLevels()
java.util.Optional<WebAuthUser>
getUser()
int
hashCode()
boolean
isAuthenticated()
boolean
isAuthenticationRequired()
boolean
isAuthorized()
java.lang.String
toString()
-
-
-
Method Detail
-
isAuthenticationRequired
public boolean isAuthenticationRequired()
-
isAuthenticated
public boolean isAuthenticated()
-
isAuthorized
public boolean isAuthorized()
-
getUser
@Nonnull public java.util.Optional<WebAuthUser> getUser()
-
getSecurityLevels
@Nonnull public com.google.common.collect.ImmutableSet<SecurityLevelConfig> getSecurityLevels()
-
getIdp
@Nonnull public java.util.Optional<java.lang.String> getIdp()
-
getIdpAttributes
@Nonnull public com.inductiveautomation.ignition.common.gson.JsonObject getIdpAttributes()
-
diff
public static WebAuthStatus.Diff diff(WebAuthStatus webAuthStatusA, WebAuthStatus webAuthStatusB)
-
diff
public WebAuthStatus.Diff diff(WebAuthStatus that)
-
equals
public boolean equals(java.lang.Object o)
- Overrides:
equals
in classjava.lang.Object
-
hashCode
public int hashCode()
- Overrides:
hashCode
in classjava.lang.Object
-
toString
public java.lang.String toString()
- Overrides:
toString
in classjava.lang.Object
-
builder
@Nonnull public static WebAuthStatus.Builder builder()
-
-