public static void validateParticipantIdsEqual(String expectedParticipantId,String actualParticipantId) throws CryptoException {
  if (!expectedParticipantId.equals(actualParticipantId)) {
    throw new CryptoException("Received payload from incorrect partner (" + actualParticipantId + "). Expected to receive payload from "+ expectedParticipantId+ ".");
  }
}

public static void validateParticipantIdsEqual ( String expectedParticipantId , String actualParticipantId ) throws CryptoException { if ( ! expectedParticipantId . equals ( actualParticipantId ) ) { throw new CryptoException ( "Received payload from incorrect partner (" + actualParticipantId + "). Expected to receive payload from " + expectedParticipantId + "." ) ; } }
validates that the given participant ids are equal . this is used to ensure that the payloads received from each round all come from the same participant .
