Base64签名值:signValue
/*** 新增usbkey注册管理** @param tbKeyManager usbkey注册管理* @return 结果*/
@Override
public int insertTbKeyManager(TbKeyManager tbKeyManager)
{tbKeyManager.setCreateTime(DateUtils.getNowDate());//生成签名值protectString toSign = tbKeyManager.getKeyNumber()+tbKeyManager.getStatus();try {String signValue = HashUtil.createSignValue(toSign);tbKeyManager.setProtect(signValue);} catch (Exception e) {e.printStackTrace();}//介质推送doPushKey(tbKeyManager);return tbKeyManagerMapper.insertTbKeyManager(tbKeyManager);
}