Topological Properties of Superconducting Junctions