Searched refs:keyFactory (Results 1 – 2 of 2) sorted by relevance
57 KeyFactory keyFactory = KeyFactory.getInstance("RSA"); in createRsaPrivateKeyFromKeyFile() local59 keyFactory.generatePrivate(new PKCS8EncodedKeySpec(pemObject.getContent())); in createRsaPrivateKeyFromKeyFile()
238 KeyFactory keyFactory = KeyFactory.getInstance(algorithm); in setPrivateKey() local239 mUserKey = keyFactory.generatePrivate(new PKCS8EncodedKeySpec(bytes)); in setPrivateKey()