# Uses of Class
org.opensaml.xmlsec.derivation.KeyDerivationException

Packages that use KeyDerivationException
Package
Description
org.opensaml.xmlsec.derivation
API components related to key derivation operations.
org.opensaml.xmlsec.derivation.impl
Implementation components related to key derivation operations.

## Uses of KeyDerivationException in org.opensaml.xmlsec.derivation

Methods in org.opensaml.xmlsec.derivation that throw KeyDerivationException
Modifier and Type
Method
Description
`SecretKey`
KeyDerivation.`derive(byte[] secret, String keyAlgorithm, Integer keyLength)`
Derive a `SecretKey` from the specified secret.
`static int`
KeyDerivationSupport.`getEffectiveKeyLength(String algorithmURI, Integer specifiedKeyLength)`
Get the effective key length based on the specified algorithm URI and the specified key length, if present.
`static String`
KeyDerivationSupport.`getJCAKeyAlgorithm(String algorithmURI)`
Get the JCA key algorithm which corresponds to the specified algorithm URI.

## Uses of KeyDerivationException in org.opensaml.xmlsec.derivation.impl

Methods in org.opensaml.xmlsec.derivation.impl that throw KeyDerivationException
Modifier and Type
Method
Description
`protected byte[]`
ConcatKDF.`decodeParam(String value, String name)`
Decode the specified concatenation parameter value for input to the derivation operation.
`protected byte[]`
ConcatKDF.`derive(byte[] secret, byte[] otherInfo, Integer keyLength)`
Derive the key bytes.
`SecretKey`
ConcatKDF.`derive(byte[] secret, String keyAlgorithm, Integer keyLength)`
Derive a `SecretKey` from the specified secret.
`SecretKey`
DHLegacyKDF.`derive(byte[] secret, String keyAlgorithm, Integer keyLength)`
Derrive secret key from inouts.
`SecretKey`
PBKDF2.`derive(byte[] secret, String keyAlgorithm, Integer specifiedKeyLength)`
Derive a `SecretKey` from the specified secret.
`protected byte[]`
DHLegacyKDF.`deriveBytes(byte[] secret, String encryptionAlgorithm, Integer keyLength)`
Derive the key bytes from the specified inputs.
`protected byte[]`
DHLegacyKDF.`digest(int counter, String digestAlgorithm, byte[] secret, String encryptionAlgorithm, Integer keyLength, byte[] nonceBytes)`
Produce the digest of the specified inputs according to XML Encryption section 1.1, section 5.6.2.2.
`protected org.bouncycastle.crypto.Digest`
ConcatKDF.`getDigestInstance(String digestURI)`
Get a new instance of the Bouncy Castle `Digest` for the specified digest algorithm URI.
`protected Integer`
PBKDF2.`getEffectiveKeyLength(String keyAlgorithm, Integer specifiedKeyLength)`
Get the effective key length, in bits.
`protected byte[]`
PBKDF2.`getEffectiveSalt()`
Get the effective salt bytes to use.
`protected static String`
ConcatKDF.`unpadParam(String value, String name)`
Unpad the specified concatenation parameter value from the padded from required by XML Encryption 1.1 for input to the derivation operation.