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
    Modifier and Type
    Field
    Description
    static final String
     
    static final String
     
  • Method Summary

    Modifier and Type
    Method
    Description
    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.

    Methods inherited from interface com.fishlib.base.log.LogOutputAppendable

    append
  • Field Details

  • 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