public static class HKDFParams.Builder extends Object
HKDFParams.
The key length and HMAC hash algorithm are required parameters.| Modifier | Constructor and Description |
|---|---|
protected |
Builder(int keyBitLength,
String hmacHashAlgorithm)
Constructor for the HKDFParams builder.
|
| Modifier and Type | Method and Description |
|---|---|
HKDFParams |
build()
Build the HKDFParams instance with the configured parameters.
|
HKDFParams.Builder |
info(byte[] info)
Set the (optional) info value which is used for the key derivation.
|
HKDFParams.Builder |
salt(byte[] salt)
Set the (optional) salt value which is used for the key derivation.
|
protected Builder(int keyBitLength,
String hmacHashAlgorithm)
keyBitLength - the length of the derived key in bitshmacHashAlgorithm - the HMAC hash algorithm URI to use for the key derivationpublic HKDFParams.Builder salt(byte[] salt)
salt - the hkdf salt valuepublic HKDFParams.Builder info(byte[] info)
info - the hkdf info valuepublic HKDFParams build()
Copyright © 2000–2025 The Apache Software Foundation. All rights reserved.