Japan and Vietnam agreed Thursday to enhance bilateral cooperation on maritime security, criticizing China for increasingly assertive actions that have led to clashes between Chinese and Vietnamese vessels in the South China Sea.