Module org.apache.santuario.xmlsec
Class KeyDerivationParameters
- java.lang.Object
-
- org.apache.xml.security.encryption.params.KeyDerivationParameters
-
- Direct Known Subclasses:
ConcatKDFParams,HKDFParams
public abstract class KeyDerivationParameters extends java.lang.ObjectAbstract key derivation class contains the basic parameters used for the key derivation. The class should be extended to provide algorithm specific parameters.
-
-
Field Summary
Fields Modifier and Type Field Description private java.lang.Stringalgorithmprivate intkeyBitLength
-
Constructor Summary
Constructors Modifier Constructor Description protectedKeyDerivationParameters(java.lang.String algorithm, int keyLength)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.StringgetAlgorithm()intgetKeyBitLength()The length of the derived key in bits.intgetKeyLength()The length of the derived key in bytes needed to store the key in bitSize.
-
-
-
Method Detail
-
getAlgorithm
public java.lang.String 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
-
-