Code example for KeyFactory

Methods: generatePrivategetKeySpec, translateKey