public class HKDFParams extends KeyDerivationParameters
| Modifier and Type | Class and Description |
|---|---|
static class |
HKDFParams.Builder
This class is used to create HKDF configuration parameters
HKDFParams. |
| Modifier | Constructor and Description |
|---|---|
protected |
HKDFParams(int keyBitLength,
String hmacHashAlgorithm)
Constructor HKDFParams with specified digest algorithm.
|
| Modifier and Type | Method and Description |
|---|---|
static HKDFParams.Builder |
createBuilder(int keyBitLength,
String hmacHashAlgorithm)
Method create a new builder for the HKDFParams.
|
String |
getHmacHashAlgorithm()
Method return the digest algorithm URI.
|
byte[] |
getInfo()
Method return the info value which is used for the key derivation.
|
byte[] |
getSalt()
Method return the salt value which is used for the key derivation.
|
void |
setHmacHashAlgorithm(String hmacHashAlgorithm)
Method set the digest algorithm URI.
|
void |
setInfo(byte[] info)
Method set the info value which is used for the key derivation.
|
void |
setSalt(byte[] salt)
Method set the salt value which is used for the key derivation.
|
getAlgorithm, getKeyBitLength, getKeyLengthprotected HKDFParams(int keyBitLength,
String hmacHashAlgorithm)
keyBitLength - the length of the derived key in bitshmacHashAlgorithm - the HMAC hash algorithm to use for the key derivationpublic String getHmacHashAlgorithm()
public void setHmacHashAlgorithm(String hmacHashAlgorithm)
hmacHashAlgorithm - the hmac algorithm URIpublic byte[] getSalt()
public void setSalt(byte[] salt)
salt - public byte[] getInfo()
public void setInfo(byte[] info)
info - public static HKDFParams.Builder createBuilder(int keyBitLength, String hmacHashAlgorithm)
keyBitLength - the length of the derived key in bitshmacHashAlgorithm - the HMAC hash algorithm URI to use for the key derivationCopyright © 2000–2024 The Apache Software Foundation. All rights reserved.