Japan to assess legal, capacity constraints on Ukraine security: Premier