In a contested case, a state agency shall give effect to the rules of privilege recognized by law.