Class HKDFParamsImpl

  • All Implemented Interfaces:
    KDFParams

    public class HKDFParamsImpl
    extends ElementProxy
    implements KDFParams
    Class HKDFParamsImpl is an DOM representation of the HKDF Parameters.
    • Constructor Detail

      • HKDFParamsImpl

        public HKDFParamsImpl​(org.w3c.dom.Document doc)
        Constructor creates a new HKDFParamsImpl instance.
        Parameters:
        doc - the Document in which to create the DOM tree
      • HKDFParamsImpl

        public HKDFParamsImpl​(org.w3c.dom.Element element,
                              java.lang.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 Detail

      • setPRFAlgorithm

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

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

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

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

        public void setKeyLength​(java.lang.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 java.lang.Integer getKeyLength()
        Returns the keyLength attribute value.
        Returns:
        the keyLength attribute value.
      • setSalt

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

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

        public java.lang.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 java.lang.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​(java.lang.String value,
                                         java.lang.String elementName)
      • getLocalElementValue

        public java.lang.String getLocalElementValue​(java.lang.String elementName)