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
public class HKDFParamsImpl extends ElementProxy implements 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
Constructors Constructor Description HKDFParamsImpl(Document doc)Constructor creates a new HKDFParamsImpl instance.HKDFParamsImpl(Element element, String baseURI)Constructor HKDFParamsImpl from existing XML element
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description StringgetBaseLocalName()Returns the localname of the Elements of the sub-class.StringgetBaseNamespace()Returns the namespace of the Elements of the sub-class.StringgetInfo()Returns the hex encodedInfoattributeIntegergetKeyLength()Returns thekeyLengthattribute value.StringgetLocalElementValue(String elementName)StringgetPRFAlgorithm()Returns theDigestMethodalgorithm value.StringgetSalt()Returns theSaltElement value.voidsetInfo(String info)Sets theInfoattributevoidsetKeyLength(Integer keyLength)Sets thekeyLengthattribute.voidsetLocalElementValue(String value, String elementName)voidsetPRFAlgorithm(String hmacHashAlgorithm)Sets theDigestMethodElementvoidsetSalt(String salt)Sets theSaltElement-
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
-
-
-
-
Constructor Detail
-
HKDFParamsImpl
public HKDFParamsImpl(Document doc)
Constructor creates a new HKDFParamsImpl instance.- Parameters:
doc- the Document in which to create the DOM tree
-
HKDFParamsImpl
public HKDFParamsImpl(Element element, String baseURI) throws XMLSecurityException
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 Detail
-
setPRFAlgorithm
public void setPRFAlgorithm(String hmacHashAlgorithm)
Sets theDigestMethodElement- Parameters:
hmacHashAlgorithm- is the digest method URI value.
-
getPRFAlgorithm
public String getPRFAlgorithm()
Returns theDigestMethodalgorithm value.- Returns:
- the digest method URI value.
-
setInfo
public void setInfo(String info)
Sets theInfoattribute- Parameters:
info- hex encoded string for the info attribute
-
getInfo
public String getInfo()
Returns the hex encodedInfoattribute- Returns:
- the info attribute value.
-
setKeyLength
public void setKeyLength(Integer keyLength)
Sets thekeyLengthattribute. If the keyLength value null, the attribute is ignored.- Parameters:
keyLength- length of the derived key in bytes.
-
getKeyLength
public Integer getKeyLength()
Returns thekeyLengthattribute value.- Returns:
- the keyLength attribute value.
-
setSalt
public void setSalt(String salt)
Sets theSaltElement- Parameters:
salt- is base64 encoded bytearray.
-
getSalt
public String getSalt()
Returns theSaltElement value.- Returns:
- the salt value is base64 encoded bytearray value.
-
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.
-
getBaseNamespace
public String 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.
-
-