John Kennedy actually said...
I have never advocated and I do not now advocate intervention in Cuba in violation of our treaty obligations and in fact stated in Johnstown, Pa., that whatever we did with regard to Cuba should be within the confines of international law.
Context
Text of a Telegram To Vice President Richard M. Nixon from Senator John F. Kennedy on Fifth Debate
10/22/1960