Merge "Add DPM.hasKeyPair()"