Module org.apache.santuario.xmlsec
Class HKDFParams.Builder
- java.lang.Object
-
- org.apache.xml.security.encryption.params.HKDFParams.Builder
-
- Enclosing class:
- HKDFParams
public static class HKDFParams.Builder extends Object
This class is used to create HKDF configuration parametersHKDFParams. The key length and HMAC hash algorithm are required parameters.
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description HKDFParamsbuild()Build the HKDFParams instance with the configured parameters.HKDFParams.Builderinfo(byte[] info)Set the (optional) info value which is used for the key derivation.HKDFParams.Buildersalt(byte[] salt)Set the (optional) salt value which is used for the key derivation.
-
-
-
Constructor Detail
-
Builder
protected Builder(int keyBitLength, String hmacHashAlgorithm)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 Detail
-
salt
public HKDFParams.Builder salt(byte[] 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
public HKDFParams.Builder info(byte[] 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
public HKDFParams build()
Build the HKDFParams instance with the configured parameters.- Returns:
- the configured HKDFParams instance
-
-