Package io.deephaven.enterprise.auth
Interface UserContext
- All Superinterfaces:
Cloneable
,com.fishlib.base.log.LogOutputAppendable
,Serializable
- All Known Implementing Classes:
SimpleUserContext
public interface UserContext
extends Serializable, Cloneable, com.fishlib.base.log.LogOutputAppendable
Created by cwright on 10/9/2014.
-
Field Summary
Fields -
Method Summary
Modifier and TypeMethodDescriptionThis 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.Methods inherited from interface com.fishlib.base.log.LogOutputAppendable
append
-
Field Details
-
AUTHENTICATED_USER_JSON_PROP
- See Also:
-
EFFECITVE_USER_JSON_PROP
- See Also:
-
-
Method Details
-
getAuthenticatedUser
String getAuthenticatedUser()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.- Returns:
- the user who authenticated to the system
-
getEffectiveUser
String getEffectiveUser()Get the user that we are operating as (not necessarily the user who logged in.- Returns:
- the user that the context is operating as
-