java.lang.Object
com.broadleafcommerce.auth.user.session.token.enhancer.UserContext

@Scope(scopeName="request", proxyMode=TARGET_CLASS) public class UserContext extends Object
Intended for use as a request scoped bean to be utilized by AccessTokenEnhancers that need to read the currently authenticated user.
See Also:
  • Constructor Details

    • UserContext

      public UserContext()
  • Method Details

    • getCurrentUser

      public User getCurrentUser()
    • setCurrentUser

      public void setCurrentUser(User currentUser)
    • equals

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

      protected boolean canEqual(Object other)
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object
    • toString

      public String toString()
      Overrides:
      toString in class Object