|
@@ -20,19 +20,19 @@ import java.util.Map;
|
|
|
import java.util.Objects;
|
|
import java.util.Objects;
|
|
|
import javax.crypto.spec.SecretKeySpec;
|
|
import javax.crypto.spec.SecretKeySpec;
|
|
|
import javax.servlet.http.HttpServletRequest;
|
|
import javax.servlet.http.HttpServletRequest;
|
|
|
-import org.xupeng.common.env.TokenConstants;
|
|
|
|
|
-import org.xupeng.common.secure.ZhongZhengUser;
|
|
|
|
|
-import org.xupeng.common.secure.TokenInfo;
|
|
|
|
|
-import org.xupeng.common.secure.SecureException;
|
|
|
|
|
-import org.xupeng.common.secure.ZhongZhengTokenProperties;
|
|
|
|
|
-import org.xupeng.common.secure.IClientDetails;
|
|
|
|
|
-import org.xupeng.common.secure.IClientDetailsService;
|
|
|
|
|
-import org.xupeng.common.secure.AesUtil;
|
|
|
|
|
-import org.xupeng.common.utils.Charsets;
|
|
|
|
|
-import org.xupeng.common.utils.Func;
|
|
|
|
|
-import org.xupeng.common.utils.SpringUtil;
|
|
|
|
|
-import org.xupeng.common.utils.StringUtil;
|
|
|
|
|
-import org.xupeng.common.utils.WebUtil;
|
|
|
|
|
|
|
+import org.zhongzheng.common.env.TokenConstants;
|
|
|
|
|
+import org.zhongzheng.common.secure.ZhongZhengUser;
|
|
|
|
|
+import org.zhongzheng.common.secure.TokenInfo;
|
|
|
|
|
+import org.zhongzheng.common.secure.SecureException;
|
|
|
|
|
+import org.zhongzheng.common.secure.ZhongZhengTokenProperties;
|
|
|
|
|
+import org.zhongzheng.common.secure.IClientDetails;
|
|
|
|
|
+import org.zhongzheng.common.secure.IClientDetailsService;
|
|
|
|
|
+import org.zhongzheng.common.secure.AesUtil;
|
|
|
|
|
+import org.zhongzheng.common.utils.Charsets;
|
|
|
|
|
+import org.zhongzheng.common.utils.Func;
|
|
|
|
|
+import org.zhongzheng.common.utils.SpringUtil;
|
|
|
|
|
+import org.zhongzheng.common.utils.StringUtil;
|
|
|
|
|
+import org.zhongzheng.common.utils.WebUtil;
|
|
|
|
|
|
|
|
public class SecureUtil {
|
|
public class SecureUtil {
|
|
|
private static final String ZHONGZHENG_USER_REQUEST_ATTR = "_ZHONGZHENG_USER_REQUEST_ATTR_";
|
|
private static final String ZHONGZHENG_USER_REQUEST_ATTR = "_ZHONGZHENG_USER_REQUEST_ATTR_";
|