public class SessionUserIdSource extends Object implements UserIdSource
UserIdSource
implementation that uses the session ID as the user ID.
Convenient for applications that don't maintain their own notion of a user.
Relies on RequestContextHolder
for obtaining the session ID.
Will throw an IllegalStateException
if there are no request attributes bound to the current thread.Constructor and Description |
---|
SessionUserIdSource() |
public String getUserId()
getUserId
in interface UserIdSource