Examples of canonicalizeSubtree()


Examples of com.sun.org.apache.xml.internal.security.c14n.Canonicalizer.canonicalizeSubtree()

      try {
         Canonicalizer c14nizer =
            Canonicalizer.getInstance(this.getCanonicalizationMethodURI());

         this._c14nizedBytes =
            c14nizer.canonicalizeSubtree(this._constructionElement);
         javax.xml.parsers.DocumentBuilderFactory dbf =
            javax.xml.parsers.DocumentBuilderFactory.newInstance();

         dbf.setNamespaceAware(true);
View Full Code Here

Examples of com.sun.org.apache.xml.internal.security.c14n.Canonicalizer.canonicalizeSubtree()

              /*&& (this._state == ElementProxy.MODE_SIGN)*/) {
         Canonicalizer c14nizer =
            Canonicalizer.getInstance(this.getCanonicalizationMethodURI());

         this._c14nizedBytes =
            c14nizer.canonicalizeSubtree(this._constructionElement);
      }

      // make defensive copy
      byte[] output = new byte[this._c14nizedBytes.length];

View Full Code Here

Examples of com.sun.org.apache.xml.internal.security.c14n.Canonicalizer.canonicalizeSubtree()

          Canonicalizer.getInstance(this.getCanonicalizationMethodURI());
       c14nizer.setWriter(os);
       String inclusiveNamespaces = this.getInclusiveNamespaces();

       if(inclusiveNamespaces == null)
        c14nizer.canonicalizeSubtree(this._constructionElement);
       else
        c14nizer.canonicalizeSubtree(this._constructionElement, inclusiveNamespaces);
    } else {
        try {
      os.write(this._c14nizedBytes);
View Full Code Here

Examples of com.sun.org.apache.xml.internal.security.c14n.Canonicalizer.canonicalizeSubtree()

       String inclusiveNamespaces = this.getInclusiveNamespaces();

       if(inclusiveNamespaces == null)
        c14nizer.canonicalizeSubtree(this._constructionElement);
       else
        c14nizer.canonicalizeSubtree(this._constructionElement, inclusiveNamespaces);
    } else {
        try {
      os.write(this._c14nizedBytes);
    } catch (IOException e) {
      throw new RuntimeException(""+e);
View Full Code Here

Examples of com.sun.org.apache.xml.internal.security.c14n.Canonicalizer.canonicalizeSubtree()

            // so reparse the SignedInfo to be sure
            try {
                Canonicalizer c14nizer =
                    Canonicalizer.getInstance(c14nMethodURI);

                byte[] c14nizedBytes = c14nizer.canonicalizeSubtree(element);
                javax.xml.parsers.DocumentBuilderFactory dbf =
                    javax.xml.parsers.DocumentBuilderFactory.newInstance();
                dbf.setNamespaceAware(true);
                dbf.setFeature(XMLConstants.FEATURE_SECURE_PROCESSING, Boolean.TRUE);
                javax.xml.parsers.DocumentBuilder db = dbf.newDocumentBuilder();
View Full Code Here

Examples of com.sun.org.apache.xml.internal.security.c14n.Canonicalizer.canonicalizeSubtree()

        if (this.c14nizedBytes == null) {
            Canonicalizer c14nizer =
                Canonicalizer.getInstance(this.getCanonicalizationMethodURI());

            this.c14nizedBytes =
                c14nizer.canonicalizeSubtree(this.constructionElement);
        }

        // make defensive copy
        return this.c14nizedBytes.clone();
    }
View Full Code Here

Examples of com.sun.org.apache.xml.internal.security.c14n.Canonicalizer.canonicalizeSubtree()

                Canonicalizer.getInstance(this.getCanonicalizationMethodURI());
            c14nizer.setWriter(os);
            String inclusiveNamespaces = this.getInclusiveNamespaces();

            if (inclusiveNamespaces == null) {
                c14nizer.canonicalizeSubtree(this.constructionElement);
            } else {
                c14nizer.canonicalizeSubtree(this.constructionElement, inclusiveNamespaces);
            }
        } else {
            try {
View Full Code Here

Examples of com.sun.org.apache.xml.internal.security.c14n.Canonicalizer.canonicalizeSubtree()

            String inclusiveNamespaces = this.getInclusiveNamespaces();

            if (inclusiveNamespaces == null) {
                c14nizer.canonicalizeSubtree(this.constructionElement);
            } else {
                c14nizer.canonicalizeSubtree(this.constructionElement, inclusiveNamespaces);
            }
        } else {
            try {
                os.write(this.c14nizedBytes);
            } catch (IOException e) {
View Full Code Here

Examples of nokogiri.internals.c14n.Canonicalizer.canonicalizeSubtree()

            Canonicalizer canonicalizer = Canonicalizer.getInstance(algorithmURI);
            XmlNode startingNode = getStartingNode(block);
            byte[] result;
            CanonicalFilter filter = new CanonicalFilter(context, block);
            if (inclusive_namespace == null) {
                result = canonicalizer.canonicalizeSubtree(startingNode.getNode(), filter);
            } else {
                result = canonicalizer.canonicalizeSubtree(startingNode.getNode(), inclusive_namespace, filter);
            }
            String resultString = new String(result, "UTF-8");
            return stringOrNil(context.getRuntime(), resultString);
View Full Code Here

Examples of org.apache.xml.security.c14n.Canonicalizer.canonicalizeSubtree()

             */
            Element dereferencedToken = dereferenceSTR(thisDoc, secRef);
            /*
             * C14n with specified algorithm. According to WSS Specification.
             */
            buf = canon.canonicalizeSubtree(dereferencedToken, "#default");
            if (doDebug) {
                bos = new ByteArrayOutputStream(buf.length);
                bos.write(buf, 0, buf.length);
                log.debug("after c14n: " + bos.toString());
            }
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.