Protection against STD

Which one of the following will confer the best protection against acquiring a sexually transmitted disease?