Search in sources :

Example 1 with Canonicalizer11_WithComments

use of org.apache.xml.security.c14n.implementations.Canonicalizer11_WithComments in project santuario-java by apache.

the class TransformC14N11_WithComments method enginePerformTransform.

protected XMLSignatureInput enginePerformTransform(XMLSignatureInput input, OutputStream os, Transform transform) throws CanonicalizationException {
    Canonicalizer11_WithComments c14n = new Canonicalizer11_WithComments();
    c14n.setSecureValidation(secureValidation);
    if (os != null) {
        c14n.setWriter(os);
    }
    byte[] result = null;
    result = c14n.engineCanonicalize(input);
    XMLSignatureInput output = new XMLSignatureInput(result);
    output.setSecureValidation(secureValidation);
    if (os != null) {
        output.setOutputStream(os);
    }
    return output;
}
Also used : XMLSignatureInput(org.apache.xml.security.signature.XMLSignatureInput) Canonicalizer11_WithComments(org.apache.xml.security.c14n.implementations.Canonicalizer11_WithComments)

Aggregations

Canonicalizer11_WithComments (org.apache.xml.security.c14n.implementations.Canonicalizer11_WithComments)1 XMLSignatureInput (org.apache.xml.security.signature.XMLSignatureInput)1