public class UserContext<I extends Identity> extends Object implements JsonSerialized
| Modifier and Type | Class and Description |
|---|---|
static class |
UserContext.Builder<I extends Identity> |
| Modifier and Type | Method and Description |
|---|---|
String |
getActualUserId()
Get the ID of the actual authenticated user.
|
String |
getEffectiveUserId()
Get the ID of the effective user.
|
Identity |
getSponsor()
Get the identity of the user that is actually authenticated, which may be
different from the "executed as" user.
|
I |
getUser()
Get the identity for the user that this transaction is being "executed as".
|
org.json.JSONObject |
toJson() |
String |
toString() |
public I getUser()
public Identity getSponsor()
public String getEffectiveUserId()
public String getActualUserId()
public org.json.JSONObject toJson()
toJson in interface JsonSerializedCopyright © 2022 continual.io. All rights reserved.