Module org.apache.santuario.xmlsec
Interface KeyDerivationMethod
-
- All Known Implementing Classes:
KeyDerivationMethodImpl
public interface KeyDerivationMethodThe key derivation is to generate new cryptographic key material from existing key material such as the shared secret and any other (private or public) information. The implementations of this interface provides XML serializing/deserializing of the:KeyDerivationParametersfor various key derivation algorithms. The Schema for KeyDerivationMethod is as follows:
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description StringgetAlgorithm()Returns the algorithm URI of thisKeyDerivationMethod.KDFParamsgetKDFParams()Returns the KDF parameters used by the key derivation algorithm.
-
-
-
Method Detail
-
getAlgorithm
String getAlgorithm()
Returns the algorithm URI of thisKeyDerivationMethod.- Returns:
- the algorithm URI string
-
getKDFParams
KDFParams getKDFParams() throws XMLSecurityException
Returns the KDF parameters used by the key derivation algorithm. Currently supported types are:ConcatKDFParamsandHKDFParams.- Returns:
- the KDFParams used by the key derivation algorithm
- Throws:
XMLSecurityException- if the KDFParams cannot be created
-
-