JFK was actually talking about current events of the cold war and how nontraditional enemies were gaining information on how the US was battling this war. In this speech JFK actually points out "the need for far greater "official" secrecy"...as well as "the need for a far greater public information". -- JFK admits "I have no easy answer to the dilemma that I have posed," but also states, "and would not seek to impose it if I had one." This a major difference from where todays elected officials stand.
Keep in mind that this speech (April 27th, 1961) was made a week after the failed Bay of Pigs invasion (April 17th-19th) and at a time when the US was assisting the South Vietnamese Government against Viet Cong insurgency actions.
The address is an appeal for responsible co-operation between the Press and the Government, that fair criticism is warranted while recognising a need to withhold information that can aid the Communists. He is helping re-enforce the message that despite the failure in Cuba, the US is still seriously engaged in the Cold War against the Soviets, that unconventional and non-military threats of many kinds abound.
JFK's appeal for an open, responsible and critical press is still a great message for the people of today, especially considering the War on Terror - a conflict that was started by the false flag attacks carried out on September 11, 2001.