public class SessionUserIdSource extends java.lang.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() |
| Modifier and Type | Method and Description |
|---|---|
java.lang.String |
getUserId() |
public java.lang.String getUserId()
getUserId in interface UserIdSource