⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 .#constant.java.1.5

📁 自己实现的AES和DES的加密算法。自己可以随意组成加密数据结构
💻 5
字号:
package com.cmcc.util;

import java.io.FileInputStream;
import java.util.ArrayList;
import java.util.HashMap;
import java.util.List;
import java.util.Properties;
import com.cmcc.common.util.StringUtil;
import com.cmcc.hibernate.GcfgSsikeys;
import com.cmcc.web.util.ServerList;

public class Constant {

	public static List<ServerList> wsListUserInfo = new ArrayList<ServerList>();
	public static List<ServerList> wsListUserDetail = new ArrayList<ServerList>();
	public static List<ServerList> wsOrder = new ArrayList<ServerList>();
	public static List<ServerList> impsList = new ArrayList<ServerList>();
	public static HashMap<Integer,String> redirctUrlMap = new HashMap<Integer,String>();
	public static HashMap<String, GcfgSsikeys> ssikeyMap = new HashMap<String,GcfgSsikeys>();
	public static final int EXTIME = 60;
	/* sso server domain */
	public static final String SSO_SERVER_DOMAIN;
	/* sso cookie 生命周期 单位秒 */
	public static final int SSO_COOKIE_MAXAGE;
	/* cookie key */
	public static final String SSO_ID_KEY;

	/* 参数 */
	public static final String P_DOMAINS;
	public static final String P_DOMAIN;
	public static final String P_MP;
	public static final String P_SID;
	public static final String P_PWD;
	public static final String P_DIGEST;
	public static final String USER_TYPE = "WebUser";
	public static final byte USER_TYPE_V2 = 0x0;
	public static final String[] USER_STATUS;

	public static final String WS_URL_MID;
	public static final String WS_URL_USERINFO_PREX;

	private static Properties prop = new Properties();
	private static Properties prop_constant = new Properties();
	static {
		String file_name = (new Constant()).getClass().getClassLoader()
				.getResource("ApplicationResources.properties").getFile();
		String file_name_constant = (new Constant()).getClass()
				.getClassLoader().getResource("contants.properties").getFile();
		try {
			prop.load(new FileInputStream(file_name));
			prop_constant.load(new FileInputStream(file_name_constant));
		} catch (Exception ex) {
			ex.printStackTrace();
		}

		String temp;

		/* sso server domain */
		SSO_SERVER_DOMAIN = prop.getProperty("sso.server.domain");
		/* sso cookie 生命周期 */
		temp = prop.getProperty("sso.cookie.maxage");
		if (temp != null && StringUtil.isDigit(temp)) {
			SSO_COOKIE_MAXAGE = Integer.parseInt(temp);
		} else {
			SSO_COOKIE_MAXAGE = 3600000; 
		}
		/* cookie key */
		SSO_ID_KEY = prop_constant.getProperty("sso.id.key");
		
		/* web service url */
		WS_URL_MID = prop_constant.getProperty("ws.url.mid");
		WS_URL_USERINFO_PREX =prop_constant.getProperty("ws.url.userinfo.prex");
		
		/* 参数 */
		P_DOMAINS = prop_constant.getProperty("p.domains");
		P_DOMAIN = prop_constant.getProperty("p.domain");
		P_MP = prop_constant.getProperty("p.mp");
		P_SID = prop_constant.getProperty("p.sid");
		P_PWD = prop_constant.getProperty("p.pwd");
		P_DIGEST = prop_constant.getProperty("p.digest");
		/* user status */
		USER_STATUS = prop_constant.getProperty("userstatus").split(";");
	}

}

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -