Code example for GeneralSecurityException

Methods: printStackTrace

		try { 
			flag = mySign.verify(value, reqSign, publicKeyBytes);
		} catch (IOException e) {
		} catch (GeneralSecurityException e) {
		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);
Contextual code suggestions in your IDE  Get Codota for Java