获取模数和密钥

@return
501222
public static Map<String, String> getModulusAndKeys() {

		Map<String, String> map = new HashMap<String, String>();

		try {
			InputStream in = RSAUtils.class.getResourceAsStream("/rsa.properties");
			Properties prop = new Properties();
			prop.load(in);

			String modulus = prop.getProperty("modulus");
			String publicKey = prop.getProperty("publicKey");
			String privateKey = prop.getProperty("privateKey");

			in.close();

			map.put("modulus", modulus);
			map.put("publicKey", publicKey);
			map.put("privateKey", privateKey);

		} catch (IOException e) {
			e.printStackTrace();
		}
		return map;
	}
1224109
public int generate() {
		int validPort = alternativePort.get();
		// 获取可用端口
		while (false == NetUtil.isUsableLocalPort(validPort)) {
			validPort = alternativePort.incrementAndGet();
		}
		return validPort;
	}
277026
public Map<String, String> toMap(){
		Map<String, String> ret = new HashMap<>();
		ret.put("id", this.getID());
		ret.put("version", this.getVersion().toString());
		return ret;
	}
845366
public byte[] getValueAsArray() {
        ByteBuffer buffer = getValue();
        byte[] result = new byte[buffer.remaining()];
        buffer.get(result);
        return result;
    }
53000
public String[] getHeader() {
        
        return columns.stream()
            .map(c -> headerMapper.toMap(c, configuration, groups))
            .toArray(n -> new String[n]);
        
    }
520903
public function getSrv()
    {
        if ($this->srv) {
            return $this->srv;
        }

        $this->srv = new \wf\app\ServiceLocator();

        // 框架组件从配置文件注入服务定位器
        $srvCfgs = cfg('srv');
        if (!$srvCfgs) {
            return $this->srv;
        }

        foreach ($srvCfgs as $srvKey => $srvArgs) {
            if (isset($srvArgs['class'])) {
                $isShare = !isset($srvArgs['srvShare']) || $srvArgs['srvShare'] ? true : false;
                $this->srv->set($srvKey, $srvArgs['class'], [$srvArgs], $isShare);
            } else {
                foreach ($srvArgs as $subKey => $subSrvArgs) {
                    if (empty($subSrvArgs['class'])) {
                        continue;
                    }
                    $isShare = !isset($subSrvArgs['srvShare']) || $subSrvArgs['srvShare'] ? true : false;
                    $this->srv->set("{$srvKey}.{$subKey}", $subSrvArgs['class'], [$subSrvArgs], $isShare);
                }
            }
        }

        return $this->srv;
    }
54046
public static Properties readDefaultConfig() {
        Properties properties = new Props();

        //读取系统默认配置
        try {
            properties.load(getResourceAsStream("conf/default.conf"));
        } catch (Exception e) {
            logger.warn(Messages.get("info.module.conf.error", "conf/default.conf"), e);
        }

        return properties;
    }
1059043
public String[] getString() {
        String[] valueDestination = new String[ string.size() ];
        this.string.getValue(valueDestination);
        return valueDestination;
    }
224877
public Configuration getConfiguration() {
		final Configuration conf = new Configuration();
		for (Map.Entry<String, String> entry : data.entrySet()) {
			conf.setString(entry.getKey(), entry.getValue());
		}
		return conf;
	}
377514
public java.util.List<CodingDt> getCoding() {  
		if (myCoding == null) {
			myCoding = new java.util.ArrayList<CodingDt>();
		}
		return myCoding;
	}
324953
public String getList() {
    String result = "";
    int i = 1;

    for (String s : mReps.keySet()) {
      result += (i++) + ". key='" + s + "', value='" + mReps.get(s) + "'\n";
    }

    return result;
  }
512129
public String[] list()
    {
        String[] list =_file.list();
        if (list==null)
            return null;
        for (int i=list.length;i-->0;)
        {
            if (new File(_file,list[i]).isDirectory() &&
                !list[i].endsWith("/"))
                list[i]+="/";
        }
        return list;
    }
504771
public byte[] getWkbBytes() {
		int wkbByteCount = bytes.length - wkbGeometryIndex;
		byte[] wkbBytes = new byte[wkbByteCount];
		System.arraycopy(bytes, wkbGeometryIndex, wkbBytes, 0, wkbByteCount);
		return wkbBytes;
	}
552754
public byte[] getData()
   {
      byte[] copy = new byte[data.length];
      System.arraycopy(data, 0, copy, 0, data.length);
      return copy;
   }
772319
public String[] getValue() {
        if (this.requestMapping != null) {
            return this.requestMapping.value();
        }
        if (this.postMapping != null) {
            return this.postMapping.value();
        }
        if (this.putMapping != null) {
            return this.putMapping.value();
        }
        if (this.deleteMapping != null) {
            return this.deleteMapping.value();
        }
        if (this.getMapping != null) {
            return this.getMapping.value();
        }
        if (this.patchMapping!= null) {
            return this.patchMapping.value();
        }
        return null;
    }
865540
public String getValue() {
		
		String results = super.getValue();
		
		try {
			Long.parseLong(super.getValue());
			results = addUnits(super.getValue());
		}catch(NumberFormatException e) {}
		
		return results;
	
	}
611610
public ArrayList getProperties(){
		ArrayList properties = new ArrayList();
		if (configEntry.properties != null){
			Iterator it = configEntry.properties.values().iterator();
			while (it.hasNext()){
				Property property = new Property((com.ibm.ws.cache.config.Property)it.next());
				properties.add(property);
			}
		}
		return properties;
	}