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
Fields Modifier and Type Field Description protected static System.LoggerLOG-
Fields inherited from class org.apache.xml.security.utils.ElementProxy
baseURI
-
-
Constructor Summary
Constructors Constructor Description KeyDerivationMethodImpl(Document doc)Constructor KeyDerivationMethodImpl creates a new KeyDerivationMethodImpl instance.KeyDerivationMethodImpl(Element element, String baseURI)Constructor KeyDerivationMethodImpl from existing XML element.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description StringgetAlgorithm()Returns the algorithm URI of thisKeyDerivationMethod.StringgetBaseLocalName()Returns the localname of the Elements of the sub-class.KDFParamsgetKDFParams()Method returns the KDFParams object of this KeyDerivationMethod Element.voidsetAlgorithm(String algorithm)Sets theAlgorithmattribute.voidsetKDFParams(KDFParams kdfParams)StringtoString()-
Methods inherited from class org.apache.xml.security.utils.Encryption11ElementProxy
getBaseNamespace
-
Methods 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 Detail
-
LOG
protected static final System.Logger LOG
-
-
Constructor Detail
-
KeyDerivationMethodImpl
public KeyDerivationMethodImpl(Document doc)
Constructor KeyDerivationMethodImpl creates a new KeyDerivationMethodImpl instance.- Parameters:
doc- the Document in which to create the DOM tree
-
KeyDerivationMethodImpl
public KeyDerivationMethodImpl(Element element, String baseURI) throws XMLSecurityException
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 Detail
-
setAlgorithm
public void setAlgorithm(String algorithm)
Sets theAlgorithmattribute.- Parameters:
algorithm- URI
-
getAlgorithm
public String getAlgorithm()
Description copied from interface:KeyDerivationMethodReturns the algorithm URI of thisKeyDerivationMethod.- Specified by:
getAlgorithmin interfaceKeyDerivationMethod- Returns:
- the algorithm URI string
-
getKDFParams
public KDFParams getKDFParams() throws XMLSecurityException
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
public void setKDFParams(KDFParams kdfParams)
-
getBaseLocalName
public String 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.
-
-