public class HKDFParamsImpl extends ElementProxy implements KDFParams
baseURI| Constructor and Description |
|---|
HKDFParamsImpl(Document doc)
Constructor creates a new HKDFParamsImpl instance.
|
HKDFParamsImpl(Element element,
String baseURI)
Constructor HKDFParamsImpl from existing XML element
|
| Modifier and Type | Method and Description |
|---|---|
String |
getBaseLocalName()
Returns the localname of the Elements of the sub-class.
|
String |
getBaseNamespace()
Returns the namespace of the Elements of the sub-class.
|
String |
getInfo()
Returns the hex encoded
Info attribute |
Integer |
getKeyLength()
Returns the
keyLength attribute value. |
String |
getLocalElementValue(String elementName) |
String |
getPRFAlgorithm()
Returns the
DigestMethod algorithm value. |
String |
getSalt()
Returns the
Salt Element value. |
void |
setInfo(String info)
Sets the
Info attribute |
void |
setKeyLength(Integer keyLength)
Sets the
keyLength attribute. |
void |
setLocalElementValue(String value,
String elementName) |
void |
setPRFAlgorithm(String hmacHashAlgorithm)
Sets the
DigestMethod Element |
void |
setSalt(String salt)
Sets the
Salt Element |
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, setXPathNamespaceContextpublic HKDFParamsImpl(Document doc)
doc - the Document in which to create the DOM treepublic HKDFParamsImpl(Element element, String baseURI) throws XMLSecurityException
element - the element to use as sourcebaseURI - the URI of the resource where the XML instance was storedXMLSecurityException - if the construction fails for any reasonpublic void setPRFAlgorithm(String hmacHashAlgorithm)
DigestMethod ElementhmacHashAlgorithm - is the digest method URI value.public String getPRFAlgorithm()
DigestMethod algorithm value.public void setInfo(String info)
Info attributeinfo - hex encoded string for the info attributepublic String getInfo()
Info attributepublic void setKeyLength(Integer keyLength)
keyLength attribute. If the keyLength value null, the attribute is ignored.keyLength - length of the derived key in bytes.public Integer getKeyLength()
keyLength attribute value.public void setSalt(String salt)
Salt Elementsalt - is base64 encoded bytearray.public String getSalt()
Salt Element value.public String getBaseLocalName()
ElementProxygetBaseLocalName in class ElementProxypublic String getBaseNamespace()
ElementProxygetBaseNamespace in class ElementProxyCopyright © 2000–2025 The Apache Software Foundation. All rights reserved.