Class ExtensionBuilder

    • Field Detail

      • currentSignatureDom

        protected Element currentSignatureDom
        This field represents the current signature being extended.
      • qualifyingPropertiesDom

        protected Element qualifyingPropertiesDom
        This field represents the signature qualifying properties
      • unsignedPropertiesDom

        protected Element unsignedPropertiesDom
        This field represents the unsigned properties
      • unsignedSignaturePropertiesDom

        protected Element unsignedSignaturePropertiesDom
        This field contains unsigned signature properties
      • signedPropertiesDom

        protected Element signedPropertiesDom
        This field represents the signed properties
      • signedDataObjectPropertiesDom

        protected Element signedDataObjectPropertiesDom
        This field contains signed data object properties
    • Constructor Detail

    • Method Detail

      • ensureUnsignedProperties

        protected void ensureUnsignedProperties()
        Returns or creates (if it does not exist) the UnsignedPropertiesType DOM object.
        Throws:
        DSSException
      • ensureUnsignedSignatureProperties

        protected void ensureUnsignedSignatureProperties()
        Returns or creates (if it does not exist) the UnsignedSignaturePropertiesType DOM object.
        Throws:
        DSSException
      • ensureSignedDataObjectProperties

        protected void ensureSignedDataObjectProperties()
        Returns or create (if it does not exist) the SignedDataObjectProperties DOM object.
        Throws:
        DSSException
      • assertSignatureValid

        protected void assertSignatureValid​(XAdESSignature xadesSignature)
      • indentIfPrettyPrint

        protected Element indentIfPrettyPrint​(Element nodeToIndent,
                                              Element oldNode)
      • removeChild

        protected String removeChild​(Node parentNode,
                                     Node nodeToRemove)
        Removes the given nodeToRemove from its parentNode
        Parameters:
        parentNode - owner Node of the nodeToRemove
        nodeToRemove - Node to remove
        Returns:
        String of the next TEXT sibling of the removed node (can be NULL if the TEXT sibling does not exist)