Examples of toElement()


Examples of com.sun.xml.ws.security.trust.WSTrustElementFactory.toElement()

        Token token = ctx.getTarget();
       
        // Validate the token and create the Status
        // Only for SAML tokens for now: verify the signature and check
        // the time stamp
        Element element = eleFac.toElement(token.getTokenValue());
       
        String code = wstVer.getValidStatusCodeURI();
        String reason = "The Trust service successfully validate the input";
       
        // Check if it is an SAML assertion
View Full Code Here

Examples of com.sun.xml.wss.saml.Assertion.toElement()

                                    wssContext.setExtraneousProperty(MessageConstants.SAML_SIG_RESOLVED,"false");
                                }
                            }
                        } else {
                            try {
                                tokenElement = samlAssertion.toElement(null);
                            } catch (Exception e) {
                                logger.log(Level.SEVERE,LogStringsMessages.WSS_1355_UNABLETO_RESOLVE_SAML_ASSERTION(),e.getMessage());
                                throw new KeySelectorException(e);
                            }
                        }
View Full Code Here

Examples of com.trolltech.qt.xml.QDomNode.toElement()

    // Tags like <ul><ul><li>1</li></ul></ul> are technically valid, but Evernote
    // expects that a <ul> tag only has a <li>, so we will need to change them
    // to this:  <ul><li><ul><li>1</li></ul></li></ul>
    if (node.nodeName().equalsIgnoreCase("ul")) {
      QDomNode firstChild = node.firstChild();
      QDomElement childElement = firstChild.toElement();
      if (childElement.nodeName().equalsIgnoreCase("ul")) {
        QDomElement newElement = doc.createElement("li");
        node.insertBefore(newElement, firstChild);
        node.removeChild(firstChild);
        newElement.appendChild(firstChild);
View Full Code Here

Examples of com.ximpleware.VTDNav.toElement()

        byte[] b = str.getBytes("UTF-8");
        VTDGen vg = new VTDGen();
        vg.setDoc(b);
        vg.parse(false);
        VTDNav vn = vg.getNav();
        require(vn.toElement(VTDNav.ROOT));
        String fileId = vn.toString(vn.getAttrVal(AgigaConstants.FILE_ID));
       
        return fileId;
    }
View Full Code Here

Examples of com.ximpleware.VTDNav.toElement()

            try {
                //main
                if (vn.matchElement(TAG_XML_MAIN)) {

                    db = new com.conf.Db();
                    if (vn.toElement(VTDNav.FIRST_CHILD, com.conf.Db.TAG_XML_DB)) {

                        if (vn.toElement(VTDNav.FIRST_CHILD, com.conf.Db.TAG_XML_CLAZZ)) {
                            db.setClazz(vn.toString(vn.getText()));
                        }
View Full Code Here

Examples of com.ximpleware.VTDNav.toElement()

                if (vn.matchElement(TAG_XML_MAIN)) {

                    db = new com.conf.Db();
                    if (vn.toElement(VTDNav.FIRST_CHILD, com.conf.Db.TAG_XML_DB)) {

                        if (vn.toElement(VTDNav.FIRST_CHILD, com.conf.Db.TAG_XML_CLAZZ)) {
                            db.setClazz(vn.toString(vn.getText()));
                        }

                         if (vn.toElement(VTDNav.NEXT_SIBLING, com.conf.Db.TAG_XML_CONN)) {
                            db.setConn(vn.toString(vn.getText()));
View Full Code Here

Examples of com.ximpleware.VTDNav.toElement()

                        if (vn.toElement(VTDNav.FIRST_CHILD, com.conf.Db.TAG_XML_CLAZZ)) {
                            db.setClazz(vn.toString(vn.getText()));
                        }

                         if (vn.toElement(VTDNav.NEXT_SIBLING, com.conf.Db.TAG_XML_CONN)) {
                            db.setConn(vn.toString(vn.getText()));
                        }

                         if (vn.toElement(VTDNav.NEXT_SIBLING, com.conf.Db.TAG_XML_QUERY)) {
                            if (vn.toElement(VTDNav.FIRST_CHILD, com.conf.Db.TAG_XML_CREATE)) {
View Full Code Here

Examples of com.ximpleware.VTDNav.toElement()

                         if (vn.toElement(VTDNav.NEXT_SIBLING, com.conf.Db.TAG_XML_CONN)) {
                            db.setConn(vn.toString(vn.getText()));
                        }

                         if (vn.toElement(VTDNav.NEXT_SIBLING, com.conf.Db.TAG_XML_QUERY)) {
                            if (vn.toElement(VTDNav.FIRST_CHILD, com.conf.Db.TAG_XML_CREATE)) {

                                do {
                                    db.addCreate(vn.toString(vn.getText()));
                                } while (vn.toElement(VTDNav.NEXT_SIBLING, com.conf.Db.TAG_XML_CREATE));
View Full Code Here

Examples of com.ximpleware.VTDNav.toElement()

                         if (vn.toElement(VTDNav.NEXT_SIBLING, com.conf.Db.TAG_XML_CONN)) {
                            db.setConn(vn.toString(vn.getText()));
                        }

                         if (vn.toElement(VTDNav.NEXT_SIBLING, com.conf.Db.TAG_XML_QUERY)) {
                            if (vn.toElement(VTDNav.FIRST_CHILD, com.conf.Db.TAG_XML_CREATE)) {

                                do {
                                    db.addCreate(vn.toString(vn.getText()));
                                } while (vn.toElement(VTDNav.NEXT_SIBLING, com.conf.Db.TAG_XML_CREATE));
                            }
View Full Code Here

Examples of com.ximpleware.VTDNav.toElement()

                         if (vn.toElement(VTDNav.NEXT_SIBLING, com.conf.Db.TAG_XML_QUERY)) {
                            if (vn.toElement(VTDNav.FIRST_CHILD, com.conf.Db.TAG_XML_CREATE)) {

                                do {
                                    db.addCreate(vn.toString(vn.getText()));
                                } while (vn.toElement(VTDNav.NEXT_SIBLING, com.conf.Db.TAG_XML_CREATE));
                            }
                        }

                    }//if()
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. 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.