private boolean verifyLogRecord(String[] record,int macPos) throws Exception {
  StringBuilder data=new StringBuilder();
  for (int m=0; m < record.length - 2; m++) {
    data.append(record[m]);
  }
  curMAC=record[macPos];
  verified=helper.verifyMAC(data.toString(),helper.toByteArray(curMAC));
  return verified;
}

private boolean verifyLogRecord ( String [ ] record , int macPos ) throws Exception { StringBuilder data = new StringBuilder ( ) ; for ( int m = 0 ; m < record . length - 2 ; m ++ ) { data . append ( record [ m ] ) ; } curMAC = record [ macPos ] ; verified = helper . verifyMAC ( data . toString ( ) , helper . toByteArray ( curMAC ) ) ; return verified ; }
verifies the passed logrecord to check for tampering .
