Search in sources :

Example 1 with Canonicalizer20010315WithComments

use of com.sun.org.apache.xml.internal.security.c14n.implementations.Canonicalizer20010315WithComments in project jdk8u_jdk by JetBrains.

the class TransformC14NWithComments method enginePerformTransform.

/** @inheritDoc */
protected XMLSignatureInput enginePerformTransform(XMLSignatureInput input, OutputStream os, Transform transformObject) throws CanonicalizationException {
    Canonicalizer20010315WithComments c14n = new Canonicalizer20010315WithComments();
    if (os != null) {
        c14n.setWriter(os);
    }
    byte[] result = null;
    result = c14n.engineCanonicalize(input);
    XMLSignatureInput output = new XMLSignatureInput(result);
    if (os != null) {
        output.setOutputStream(os);
    }
    return output;
}
Also used : XMLSignatureInput(com.sun.org.apache.xml.internal.security.signature.XMLSignatureInput) Canonicalizer20010315WithComments(com.sun.org.apache.xml.internal.security.c14n.implementations.Canonicalizer20010315WithComments)

Aggregations

Canonicalizer20010315WithComments (com.sun.org.apache.xml.internal.security.c14n.implementations.Canonicalizer20010315WithComments)1 XMLSignatureInput (com.sun.org.apache.xml.internal.security.signature.XMLSignatureInput)1