Package io.deephaven.enterprise.auth
Class SimpleUserContext
java.lang.Object
io.deephaven.enterprise.auth.SimpleUserContext
- All Implemented Interfaces:
com.fishlib.base.log.LogOutputAppendable
,UserContext
,Serializable
,Cloneable
A super simple dummy implementation of a user context, where you just assert what the user is, and then there are
some hardcoded rules for testing.
- See Also:
-
Field Summary
Fields inherited from interface io.deephaven.enterprise.auth.UserContext
AUTHENTICATED_USER_JSON_PROP, EFFECITVE_USER_JSON_PROP
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptioncom.fishlib.base.log.LogOutput
append
(com.fishlib.base.log.LogOutput logOutput) boolean
This is the user who authenticated themselves to the system, this may be different than the user which the system is operating as.Get the user that we are operating as (not necessarily the user who logged in.toString()
-
Constructor Details
-
SimpleUserContext
-
-
Method Details
-
getAuthenticatedUser
Description copied from interface:UserContext
This is the user who authenticated themselves to the system, this may be different than the user which the system is operating as. For example, a developer may authenticate as themselves and operate as a trader in order to help them debug something.- Specified by:
getAuthenticatedUser
in interfaceUserContext
- Returns:
- the user who authenticated to the system
-
getEffectiveUser
Description copied from interface:UserContext
Get the user that we are operating as (not necessarily the user who logged in.- Specified by:
getEffectiveUser
in interfaceUserContext
- Returns:
- the user that the context is operating as
-
equals
-
toString
-
append
public com.fishlib.base.log.LogOutput append(com.fishlib.base.log.LogOutput logOutput) - Specified by:
append
in interfacecom.fishlib.base.log.LogOutputAppendable
-