|
|
@ -77,6 +77,15 @@ public class SecurityContextHolder |
|
|
|
set(SecurityConstants.DETAILS_USERNAME, username); |
|
|
|
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() |
|
|
|
public static String getUserKey() |
|
|
|
{ |
|
|
|
{ |
|
|
|
return get(SecurityConstants.USER_KEY); |
|
|
|
return get(SecurityConstants.USER_KEY); |
|
|
|