Module org.apache.santuario.xmlsec
Class HKDFParamsImpl
java.lang.Object
org.apache.xml.security.utils.ElementProxy
org.apache.xml.security.encryption.keys.content.derivedKey.HKDFParamsImpl
- All Implemented Interfaces:
KDFParams
Class HKDFParamsImpl is an DOM representation of the HKDF Parameters.
-
Field Summary
Fields inherited from class org.apache.xml.security.utils.ElementProxy
baseURI, LOG -
Constructor Summary
ConstructorsConstructorDescriptionHKDFParamsImpl(Document doc) Constructor creates a new HKDFParamsImpl instance.HKDFParamsImpl(Element element, String baseURI) Constructor HKDFParamsImpl from existing XML element -
Method Summary
Modifier and TypeMethodDescriptionReturns the localname of the Elements of the sub-class.Returns the namespace of the Elements of the sub-class.getInfo()Returns the hex encodedInfoattributeReturns thekeyLengthattribute value.getLocalElementValue(String elementName) Returns theDigestMethodalgorithm value.getSalt()Returns theSaltElement value.voidSets theInfoattributevoidsetKeyLength(Integer keyLength) Sets thekeyLengthattribute.voidsetLocalElementValue(String value, String elementName) voidsetPRFAlgorithm(String hmacHashAlgorithm) Sets theDigestMethodElementvoidSets theSaltElementMethods 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
-
Constructor Details
-
HKDFParamsImpl
Constructor creates a new HKDFParamsImpl instance.- Parameters:
doc- the Document in which to create the DOM tree
-
HKDFParamsImpl
Constructor HKDFParamsImpl 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 the construction fails for any reason
-
-
Method Details
-
setPRFAlgorithm
Sets theDigestMethodElement- Parameters:
hmacHashAlgorithm- is the digest method URI value.
-
getPRFAlgorithm
Returns theDigestMethodalgorithm value.- Returns:
- the digest method URI value.
-
setInfo
Sets theInfoattribute- Parameters:
info- hex encoded string for the info attribute
-
getInfo
Returns the hex encodedInfoattribute- Returns:
- the info attribute value.
-
setKeyLength
Sets thekeyLengthattribute. If the keyLength value null, the attribute is ignored.- Parameters:
keyLength- length of the derived key in bytes.
-
getKeyLength
Returns thekeyLengthattribute value.- Returns:
- the keyLength attribute value.
-
setSalt
Sets theSaltElement- Parameters:
salt- is base64 encoded bytearray.
-
getSalt
Returns theSaltElement value.- Returns:
- the salt value is base64 encoded bytearray value.
-
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.
-
getBaseNamespace
Description copied from class:ElementProxyReturns the namespace of the Elements of the sub-class.- Specified by:
getBaseNamespacein classElementProxy- Returns:
- the namespace of the Elements of the sub-class.
-
setLocalElementValue
-
getLocalElementValue
-