Time-Reversal Symmetry And Topology In One-Dimensional Josephson Junctions