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.
  • Constructor Details

    • 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 source
      baseURI - the URI of the resource where the XML instance was stored
      Throws:
      XMLSecurityException - if the construction fails for any reason
  • Method Details

    • setPRFAlgorithm

      public void setPRFAlgorithm(String hmacHashAlgorithm)
      Sets the DigestMethod Element
      Parameters:
      hmacHashAlgorithm - is the digest method URI value.
    • getPRFAlgorithm

      public String getPRFAlgorithm()
      Returns the DigestMethod algorithm value.
      Returns:
      the digest method URI value.
    • setInfo

      public void setInfo(String info)
      Sets the Info attribute
      Parameters:
      info - hex encoded string for the info attribute
    • getInfo

      public String getInfo()
      Returns the hex encoded Info attribute
      Returns:
      the info attribute value.
    • setKeyLength

      public void setKeyLength(Integer keyLength)
      Sets the keyLength attribute. If the keyLength value null, the attribute is ignored.
      Parameters:
      keyLength - length of the derived key in bytes.
    • getKeyLength

      public Integer getKeyLength()
      Returns the keyLength attribute value.
      Returns:
      the keyLength attribute value.
    • setSalt

      public void setSalt(String salt)
      Sets the Salt Element
      Parameters:
      salt - is base64 encoded bytearray.
    • getSalt

      public String getSalt()
      Returns the Salt Element value.
      Returns:
      the salt value is base64 encoded bytearray value.
    • getBaseLocalName

      public String getBaseLocalName()
      Description copied from class: ElementProxy
      Returns the localname of the Elements of the sub-class.
      Specified by:
      getBaseLocalName in class ElementProxy
      Returns:
      the localname of the Elements of the sub-class.
    • getBaseNamespace

      public String getBaseNamespace()
      Description copied from class: ElementProxy
      Returns the namespace of the Elements of the sub-class.
      Specified by:
      getBaseNamespace in class ElementProxy
      Returns:
      the namespace of the Elements of the sub-class.
    • setLocalElementValue

      public void setLocalElementValue(String value, String elementName)
    • getLocalElementValue

      public String getLocalElementValue(String elementName)