Module org.apache.santuario.xmlsec
Class KeyDerivationMethodImpl
java.lang.Object
org.apache.xml.security.utils.ElementProxy
org.apache.xml.security.utils.Encryption11ElementProxy
org.apache.xml.security.encryption.keys.content.derivedKey.KeyDerivationMethodImpl
- All Implemented Interfaces:
KeyDerivationMethod
public class KeyDerivationMethodImpl
extends Encryption11ElementProxy
implements KeyDerivationMethod
Class KeyDerivationMethodImpl is an DOM implementation of the KeyDerivationMethod.
-
Field Summary
FieldsFields inherited from class org.apache.xml.security.utils.ElementProxy
baseURI -
Constructor Summary
ConstructorsConstructorDescriptionConstructor KeyDerivationMethodImpl creates a new KeyDerivationMethodImpl instance.KeyDerivationMethodImpl(Element element, String baseURI) Constructor KeyDerivationMethodImpl from existing XML element. -
Method Summary
Modifier and TypeMethodDescriptionReturns the algorithm URI of thisKeyDerivationMethod.Returns the localname of the Elements of the sub-class.Method returns the KDFParams object of this KeyDerivationMethod Element.voidsetAlgorithm(String algorithm) Sets theAlgorithmattribute.voidsetKDFParams(KDFParams kdfParams) toString()Methods inherited from class org.apache.xml.security.utils.Encryption11ElementProxy
getBaseNamespaceMethods inherited from class org.apache.xml.security.utils.ElementProxy
addBase64Element, addBase64Text, addBigIntegerElement, addReturnToSelf, addText, addTextElement, appendOther, appendSelf, appendSelf, createElementForFamily, createElementForFamilyLocal, createText, getBaseURI, getBigIntegerFromChildElement, getBytesFromTextChild, getDefaultPrefix, getDocument, getElement, getElementPlusReturns, getFirstChild, getLocalAttribute, getTextFromChildElement, getTextFromTextChild, length, registerDefaultPrefixes, setDefaultPrefix, setDocument, setElement, setElement, setLocalAttribute, setLocalIdAttribute, setXPathNamespaceContext
-
Field Details
-
LOG
-
-
Constructor Details
-
KeyDerivationMethodImpl
Constructor KeyDerivationMethodImpl creates a new KeyDerivationMethodImpl instance.- Parameters:
doc- the Document in which to create the DOM tree
-
KeyDerivationMethodImpl
Constructor KeyDerivationMethodImpl from existing XML element.- Parameters:
element- the element to use as sourcebaseURI- the URI of the resource where the XML instance was stored- Throws:
XMLSecurityException- if a parsing error occurs
-
-
Method Details
-
setAlgorithm
Sets theAlgorithmattribute.- Parameters:
algorithm- URI
-
getAlgorithm
Description copied from interface:KeyDerivationMethodReturns the algorithm URI of thisKeyDerivationMethod.- Specified by:
getAlgorithmin interfaceKeyDerivationMethod- Returns:
- the algorithm URI string
-
getKDFParams
Method returns the KDFParams object of this KeyDerivationMethod Element. If the KDFParams object is not set/cached, it tries to parse it (and cache it) from the KeyDerivationMethod Element. If the KDFParams cannot be parsed/or the Key derivation function URI is not supported, an XMLSecurityException is thrown.- Specified by:
getKDFParamsin interfaceKeyDerivationMethod- Returns:
- the Key derivation function parameters.
- Throws:
XMLSecurityException- if the KDFParams cannot be created or the KDF URI is not supported.
-
setKDFParams
-
getBaseLocalName
Description copied from class:ElementProxyReturns the localname of the Elements of the sub-class.- Specified by:
getBaseLocalNamein classElementProxy- Returns:
- the localname of the Elements of the sub-class.
-
toString
-