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.LogOutputappend(com.fishlib.base.log.LogOutput logOutput) booleanThis 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:UserContextThis 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:
getAuthenticatedUserin interfaceUserContext- Returns:
- the user who authenticated to the system
-
getEffectiveUser
Description copied from interface:UserContextGet the user that we are operating as (not necessarily the user who logged in.- Specified by:
getEffectiveUserin 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:
appendin interfacecom.fishlib.base.log.LogOutputAppendable
-