Search in sources :

Example 1 with Canonicalizer11_OmitComments

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

the class TransformC14N11 method enginePerformTransform.

protected XMLSignatureInput enginePerformTransform(XMLSignatureInput input, OutputStream os, Transform transform) throws CanonicalizationException {
    Canonicalizer11_OmitComments c14n = new Canonicalizer11_OmitComments();
    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 : Canonicalizer11_OmitComments(com.sun.org.apache.xml.internal.security.c14n.implementations.Canonicalizer11_OmitComments) XMLSignatureInput(com.sun.org.apache.xml.internal.security.signature.XMLSignatureInput)

Aggregations

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