Package org.apache.xerces.dom

Examples of org.apache.xerces.dom.DocumentImpl


        throws XNIException {

        fInDocument = true;
        if (!fDeferNodeExpansion) {
            if (fDocumentClassName.equals(DEFAULT_DOCUMENT_CLASS_NAME)) {
                fDocument = new DocumentImpl();
                fDocumentImpl = (CoreDocumentImpl)fDocument;
                // REVISIT: when DOM Level 3 is REC rely on Document.support
                //          instead of specific class
                // set DOM error checking off
                fDocumentImpl.setStrictErrorChecking(false);
View Full Code Here


    {
      X509Certificate[] oCertChain = moConfig.getCertificateChain();

      try
      {
        Document oDoc = new DocumentImpl();
        KeyInfo oKeyInfo = new KeyInfo(oDoc);
        X509Data oData = new X509Data(oDoc);
        oData.addCertificate(oCertChain[oCertChain.length - 1]);
        oKeyInfo.add(oData);
        msKeyInfo = DOMUtils.toString(oKeyInfo.getElement(), false, true);
View Full Code Here

    * Returns object as a formatted XML string.
    * @param sTab - The characters to prepend before each new line
    */
    public String dump()
    {
        Document doc = new DocumentImpl();
        Element elm = this.toDOM(doc);
        doc.appendChild(elm);
        return DOMUtils.toString(doc);

    } // dump()
View Full Code Here

    * Returns object as a formatted XML string.
    * @param sTab - The characters to prepend before each new line
    */
    public String dump()
    {
        Document doc = new DocumentImpl();
        Element elm = this.toDOM(doc);
        doc.appendChild(elm);
        return DOMUtils.toString(doc);

    } // dump()
View Full Code Here

        oAuthority.setProviderID(moAuth.getProviderID());

        KeyInfo oKeyInfo = null;
        if (moCertChain != null)
        {
            Document oDoc = new DocumentImpl();
            oKeyInfo = new KeyInfo(oDoc);
            X509Data oData = new X509Data(oDoc);
            oData.addCertificate(moCertChain[0]);
            oKeyInfo.add(oData);
            oAuthority.setKeyInfo(oKeyInfo);
View Full Code Here

   
    X509Certificate[] oCertChain = moConfig.getCertificateChain();

    try
    {
      Document oDoc = new DocumentImpl();
      KeyInfo oKeyInfo = new KeyInfo(oDoc);
      X509Data oData = new X509Data(oDoc);
      oData.addCertificate(oCertChain[oCertChain.length - 1]);
      oKeyInfo.add(oData);
      msKeyInfo = DOMUtils.toString(oKeyInfo.getElement(), false, true);
View Full Code Here

    * Returns object as a formatted XML string.
    * @param sTab - The characters to prepend before each new line
    */
    public String dump()
    {
        Document doc = new DocumentImpl();
        Element elm = this.toDOM(doc);
        doc.appendChild(elm);
        return DOMUtils.toString(doc);

    } // dump()
View Full Code Here

                // only accept the first XRIAuthority
                if (moSignature == null)
                {
                    try
                    {
                        Document oDoc = new DocumentImpl();
                        Element oChildCopy =
                            (Element) oDoc.importNode(oChild, true);
                        moSignature = new XMLSignature(oChildCopy, null);
                    }
                    catch (Exception oEx)
                    {
                        soLog.warn(
View Full Code Here

    */
    public Element getDOM()
    {
        if (moElem == null)
        {
            moElem = toDOM(new DocumentImpl());
            moElem.getOwnerDocument().appendChild(moElem);
        }

        return moElem;

View Full Code Here

    * Returns object as a formatted XML string.
    * @param sTab - The characters to prepend before each new line
    */
    public String dump()
    {
        Document doc = new DocumentImpl();
        Element elm = this.toDOM(doc);
        doc.appendChild(elm);
        return DOMUtils.toString(doc);

    } // dump()
View Full Code Here

TOP

Related Classes of org.apache.xerces.dom.DocumentImpl

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.