Some examples for that would be:
When a counselor keeps all the information you give them confidential, unless it is going to hurt you or another person.
When a detective keeps all clues and information on a crime confidential and kept hidden from civilians.