Searched refs:keyFactory (Results 1 – 4 of 4) sorted by relevance
142 KeyFactory keyFactory = KeyFactory.getInstance("RSA"); in createKey() local143 return (PrivateKey) keyFactory.generatePrivate(keySpec); in createKey()
179 KeyFactory keyFactory = KeyFactory.getInstance(algorithm);180 userKey = keyFactory.generatePrivate(new PKCS8EncodedKeySpec(bytes));
3991 final KeyFactory keyFactory = KeyFactory.getInstance("RSA"); in parsePublicKey() local3992 return keyFactory.generatePublic(keySpec); in parsePublicKey()4002 final KeyFactory keyFactory = KeyFactory.getInstance("DSA"); in parsePublicKey() local4003 return keyFactory.generatePublic(keySpec); in parsePublicKey()
1390 SecretKeyFactory keyFactory = SecretKeyFactory.getInstance(algorithm); in buildCharArrayKey() local1392 return keyFactory.generateSecret(ks); in buildCharArrayKey()