# [JEP 510](https://openjdk.org/jeps/510) example Source: https://openjdk.org/jeps/510 ```java KDF hkdf = KDF.getInstance("HKDF-SHA256"); AlgorithmParameterSpec params = HKDFParameterSpec.ofExtract() .addIKM(initialKeyMaterial) .addSalt(salt) .thenExpand(info, 32); SecretKey key = hkdf.deriveKey("AES", params); ```