Code example for KeyFactory

Methods: generatePrivate, getKeySpec, translateKey