|
|
|
@ -77,6 +77,15 @@ public class SecurityContextHolder
@@ -77,6 +77,15 @@ public class SecurityContextHolder
|
|
|
|
|
set(SecurityConstants.DETAILS_USERNAME, username); |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
public static void setUserAgent(String userId,String useragent) |
|
|
|
|
{ |
|
|
|
|
set("userId", useragent); |
|
|
|
|
} |
|
|
|
|
public static String getUserAgent(String userId) |
|
|
|
|
{ |
|
|
|
|
return get(userId); |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
public static String getUserKey() |
|
|
|
|
{ |
|
|
|
|
return get(SecurityConstants.USER_KEY); |
|
|
|
|