Class SimpleUserContext

java.lang.Object
io.deephaven.enterprise.auth.SimpleUserContext
All Implemented Interfaces:
com.fishlib.base.log.LogOutputAppendable, UserContext, Serializable, Cloneable

public class SimpleUserContext extends Object implements UserContext
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:
  • Constructor Details

    • SimpleUserContext

      public SimpleUserContext(String authenticatedUser, String effectiveUser)
  • Method Details

    • getAuthenticatedUser

      public String 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 interface UserContext
      Returns:
      the user who authenticated to the system
    • getEffectiveUser

      public String 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 interface UserContext
      Returns:
      the user that the context is operating as
    • equals

      public boolean equals(Object o)
      Overrides:
      equals in class Object
    • toString

      public String toString()
      Overrides:
      toString in class Object
    • append

      public com.fishlib.base.log.LogOutput append(com.fishlib.base.log.LogOutput logOutput)
      Specified by:
      append in interface com.fishlib.base.log.LogOutputAppendable