KeyFactory kf = KeyFactory.getInstance(type.alg);
PublicKey pubK = getPublicKey(type, pub);
PKCS8EncodedKeySpec pks = new PKCS8EncodedKeySpec(pri);
PrivateKey privK = kf.generatePrivate(pks);
// FIXME verify that the keys are consistent if assertions/logging enabled??
return getKeyPair(pubK, privK);
} catch (UnsupportedTypeException e) {
throw new Error(e); // Should be impossible