Module org.apache.santuario.xmlsec
Class KeyDerivationParameters
java.lang.Object
org.apache.xml.security.encryption.params.KeyDerivationParameters
- Direct Known Subclasses:
ConcatKDFParams,HKDFParams
Abstract key derivation class contains the basic parameters used for the key derivation.
The class should be extended to provide algorithm specific parameters.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionintThe length of the derived key in bits.intThe length of the derived key in bytes needed to store the key in bitSize.
-
Constructor Details
-
KeyDerivationParameters
-
-
Method Details
-
getAlgorithm
-
getKeyBitLength
public int getKeyBitLength()The length of the derived key in bits.- Returns:
-
getKeyLength
public int getKeyLength()The length of the derived key in bytes needed to store the key in bitSize. For example: if the key is 9 bits long, the length of the key in bytes is 2, but the key is stored in 8 bits the length in bytes is 1.- Returns:
- the length of the derived key in bytes
-