Code example for GeneralSecurityException

Methods: printStackTrace

0
		try { 
			flag = mySign.verify(value, reqSign, publicKeyBytes);
		} catch (IOException e) {
			e.printStackTrace();
		} catch (GeneralSecurityException e) {
			e.printStackTrace();
		} 
		return flag;
	} 
 
	public static String doGenerateSign(String value, String merId)
			throws SignEncException { 
		if (value == null)
			throw new SignEncException( 
					"the data string to be signed cannot be null"); 
		if (merId == null)
			throw new SignEncException("the merId cannot be null"); 
 
		SignUtil mySign = getSignUtil(merId);
		byte[] privateKeyBytes = mySign.getProp(merprikeypath);
		String reqSign = "";