Module org.apache.santuario.xmlsec
Class HKDFParams.Builder
java.lang.Object
org.apache.xml.security.encryption.params.HKDFParams.Builder
- Enclosing class:
HKDFParams
This class is used to create HKDF configuration parameters
HKDFParams.
The key length and HMAC hash algorithm are required parameters.-
Constructor Summary
Constructors -
Method Summary
-
Constructor Details
-
Builder
Constructor for the HKDFParams builder. The key bit length and HMAC hash algorithm are required parameters.- Parameters:
keyBitLength- the length of the derived key in bitshmacHashAlgorithm- the HMAC hash algorithm URI to use for the key derivation
-
-
Method Details
-
salt
Set the (optional) salt value which is used for the key derivation.- Parameters:
salt- the hkdf salt value- Returns:
- the self updated builder instance
-
info
Set the (optional) info value which is used for the key derivation.- Parameters:
info- the hkdf info value- Returns:
- the self updated builder instance
-
build
Build the HKDFParams instance with the configured parameters.- Returns:
- the configured HKDFParams instance
-