Interface XMLSigner.SignatureLocationFinder

    • Method Summary

      All Methods Instance Methods Abstract Methods 
      Modifier and Type Method Description
      java.lang.String getIDAttribute()  
      java.lang.String getIDValue​(org.w3c.dom.Element signedElement)  
      java.util.List<javax.xml.namespace.QName> getSiblingsBeforeSignature​(org.w3c.dom.Element element)
      Method that should return the possible siblings that should be placed before the signature element in the specified element.
      org.w3c.dom.Element[] getSignatureLocations​(org.w3c.dom.Document doc)
      Return the element inside a document that should be signed.
    • Method Detail

      • getIDAttribute

        java.lang.String getIDAttribute()
        Returns:
        the name of the ID attribute referenced by the envelope signature.
      • getIDValue

        java.lang.String getIDValue​(org.w3c.dom.Element signedElement)
                             throws MessageContentException
        Parameters:
        signedElement - the element that should be signed, and ID value for should be fetched.
        Returns:
        the signature reference ID value
        Throws:
        MessageContentException
      • getSiblingsBeforeSignature

        java.util.List<javax.xml.namespace.QName> getSiblingsBeforeSignature​(org.w3c.dom.Element element)
                                                                      throws MessageContentException
        Method that should return the possible siblings that should be placed before the signature element in the specified element. If a specified sibling isn't found should the next be used.
        Parameters:
        element - the element about to be signed and those siblings should be found.
        Returns:
        a list of siblings that should be before signature, if the first doesn't exist due to optional is the next in list use. return null to place signature last in element.
        Throws:
        MessageContentException - if problems was found with the supplied element