Java Code Examples for com.sun.org.apache.xml.internal.security.c14n.implementations.Canonicalizer20010315OmitComments#engineCanonicalize()

The following examples show how to use com.sun.org.apache.xml.internal.security.c14n.implementations.Canonicalizer20010315OmitComments#engineCanonicalize() . You can vote up the ones you like or vote down the ones you don't like, and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example 1
Source File: TransformC14N.java    From openjdk-8 with GNU General Public License v2.0 5 votes vote down vote up
protected XMLSignatureInput enginePerformTransform(
    XMLSignatureInput input, OutputStream os, Transform transformObject
) throws CanonicalizationException {
    Canonicalizer20010315OmitComments c14n = new Canonicalizer20010315OmitComments();
    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;
}
 
Example 2
Source File: TransformC14N.java    From hottub with GNU General Public License v2.0 5 votes vote down vote up
protected XMLSignatureInput enginePerformTransform(
    XMLSignatureInput input, OutputStream os, Transform transformObject
) throws CanonicalizationException {
    Canonicalizer20010315OmitComments c14n = new Canonicalizer20010315OmitComments();
    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;
}
 
Example 3
Source File: TransformC14N.java    From jdk8u-jdk with GNU General Public License v2.0 5 votes vote down vote up
protected XMLSignatureInput enginePerformTransform(
    XMLSignatureInput input, OutputStream os, Transform transformObject
) throws CanonicalizationException {
    Canonicalizer20010315OmitComments c14n = new Canonicalizer20010315OmitComments();
    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;
}
 
Example 4
Source File: TransformC14N.java    From jdk8u-dev-jdk with GNU General Public License v2.0 5 votes vote down vote up
protected XMLSignatureInput enginePerformTransform(
    XMLSignatureInput input, OutputStream os, Transform transformObject
) throws CanonicalizationException {
    Canonicalizer20010315OmitComments c14n = new Canonicalizer20010315OmitComments();
    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;
}
 
Example 5
Source File: TransformC14N.java    From openjdk-jdk9 with GNU General Public License v2.0 5 votes vote down vote up
protected XMLSignatureInput enginePerformTransform(
    XMLSignatureInput input, OutputStream os, Transform transformObject
) throws CanonicalizationException {
    Canonicalizer20010315OmitComments c14n = new Canonicalizer20010315OmitComments();
    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;
}
 
Example 6
Source File: TransformC14N.java    From openjdk-jdk8u-backup with GNU General Public License v2.0 5 votes vote down vote up
protected XMLSignatureInput enginePerformTransform(
    XMLSignatureInput input, OutputStream os, Transform transformObject
) throws CanonicalizationException {
    Canonicalizer20010315OmitComments c14n = new Canonicalizer20010315OmitComments();
    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;
}
 
Example 7
Source File: TransformC14N.java    From openjdk-jdk8u with GNU General Public License v2.0 5 votes vote down vote up
protected XMLSignatureInput enginePerformTransform(
    XMLSignatureInput input, OutputStream os, Transform transformObject
) throws CanonicalizationException {
    Canonicalizer20010315OmitComments c14n = new Canonicalizer20010315OmitComments();
    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;
}
 
Example 8
Source File: TransformC14N.java    From openjdk-8-source with GNU General Public License v2.0 5 votes vote down vote up
protected XMLSignatureInput enginePerformTransform(
    XMLSignatureInput input, OutputStream os, Transform transformObject
) throws CanonicalizationException {
    Canonicalizer20010315OmitComments c14n = new Canonicalizer20010315OmitComments();
    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;
}
 
Example 9
Source File: TransformC14N.java    From TencentKona-8 with GNU General Public License v2.0 5 votes vote down vote up
protected XMLSignatureInput enginePerformTransform(
    XMLSignatureInput input, OutputStream os, Transform transformObject
) throws CanonicalizationException {
    Canonicalizer20010315OmitComments c14n = new Canonicalizer20010315OmitComments();
    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;
}
 
Example 10
Source File: XMLSignatureInput.java    From jdk8u60 with GNU General Public License v2.0 3 votes vote down vote up
/**
 * Returns the byte array from input which was specified as the parameter of
 * {@link XMLSignatureInput} constructor
 *
 * @return the byte[] from input which was specified as the parameter of
 * {@link XMLSignatureInput} constructor
 *
 * @throws CanonicalizationException
 * @throws IOException
 */
public byte[] getBytes() throws IOException, CanonicalizationException {
    byte[] inputBytes = getBytesFromInputStream();
    if (inputBytes != null) {
        return inputBytes;
    }
    Canonicalizer20010315OmitComments c14nizer = new Canonicalizer20010315OmitComments();
    bytes = c14nizer.engineCanonicalize(this);
    return bytes;
}
 
Example 11
Source File: XMLSignatureInput.java    From jdk8u-jdk with GNU General Public License v2.0 3 votes vote down vote up
/**
 * Returns the byte array from input which was specified as the parameter of
 * {@link XMLSignatureInput} constructor
 *
 * @return the byte[] from input which was specified as the parameter of
 * {@link XMLSignatureInput} constructor
 *
 * @throws CanonicalizationException
 * @throws IOException
 */
public byte[] getBytes() throws IOException, CanonicalizationException {
    byte[] inputBytes = getBytesFromInputStream();
    if (inputBytes != null) {
        return inputBytes;
    }
    Canonicalizer20010315OmitComments c14nizer = new Canonicalizer20010315OmitComments();
    bytes = c14nizer.engineCanonicalize(this);
    return bytes;
}
 
Example 12
Source File: XMLSignatureInput.java    From JDKSourceCode1.8 with MIT License 3 votes vote down vote up
/**
 * Returns the byte array from input which was specified as the parameter of
 * {@link XMLSignatureInput} constructor
 *
 * @return the byte[] from input which was specified as the parameter of
 * {@link XMLSignatureInput} constructor
 *
 * @throws CanonicalizationException
 * @throws IOException
 */
public byte[] getBytes() throws IOException, CanonicalizationException {
    byte[] inputBytes = getBytesFromInputStream();
    if (inputBytes != null) {
        return inputBytes;
    }
    Canonicalizer20010315OmitComments c14nizer = new Canonicalizer20010315OmitComments();
    bytes = c14nizer.engineCanonicalize(this);
    return bytes;
}
 
Example 13
Source File: XMLSignatureInput.java    From openjdk-8-source with GNU General Public License v2.0 3 votes vote down vote up
/**
 * Returns the byte array from input which was specified as the parameter of
 * {@link XMLSignatureInput} constructor
 *
 * @return the byte[] from input which was specified as the parameter of
 * {@link XMLSignatureInput} constructor
 *
 * @throws CanonicalizationException
 * @throws IOException
 */
public byte[] getBytes() throws IOException, CanonicalizationException {
    byte[] inputBytes = getBytesFromInputStream();
    if (inputBytes != null) {
        return inputBytes;
    }
    Canonicalizer20010315OmitComments c14nizer = new Canonicalizer20010315OmitComments();
    bytes = c14nizer.engineCanonicalize(this);
    return bytes;
}
 
Example 14
Source File: XMLSignatureInput.java    From TencentKona-8 with GNU General Public License v2.0 3 votes vote down vote up
/**
 * Returns the byte array from input which was specified as the parameter of
 * {@link XMLSignatureInput} constructor
 *
 * @return the byte[] from input which was specified as the parameter of
 * {@link XMLSignatureInput} constructor
 *
 * @throws CanonicalizationException
 * @throws IOException
 */
public byte[] getBytes() throws IOException, CanonicalizationException {
    byte[] inputBytes = getBytesFromInputStream();
    if (inputBytes != null) {
        return inputBytes;
    }
    Canonicalizer20010315OmitComments c14nizer = new Canonicalizer20010315OmitComments();
    bytes = c14nizer.engineCanonicalize(this);
    return bytes;
}
 
Example 15
Source File: XMLSignatureInput.java    From openjdk-jdk8u-backup with GNU General Public License v2.0 3 votes vote down vote up
/**
 * Returns the byte array from input which was specified as the parameter of
 * {@link XMLSignatureInput} constructor
 *
 * @return the byte[] from input which was specified as the parameter of
 * {@link XMLSignatureInput} constructor
 *
 * @throws CanonicalizationException
 * @throws IOException
 */
public byte[] getBytes() throws IOException, CanonicalizationException {
    byte[] inputBytes = getBytesFromInputStream();
    if (inputBytes != null) {
        return inputBytes;
    }
    Canonicalizer20010315OmitComments c14nizer = new Canonicalizer20010315OmitComments();
    bytes = c14nizer.engineCanonicalize(this);
    return bytes;
}
 
Example 16
Source File: XMLSignatureInput.java    From dragonwell8_jdk with GNU General Public License v2.0 3 votes vote down vote up
/**
 * Returns the byte array from input which was specified as the parameter of
 * {@link XMLSignatureInput} constructor
 *
 * @return the byte[] from input which was specified as the parameter of
 * {@link XMLSignatureInput} constructor
 *
 * @throws CanonicalizationException
 * @throws IOException
 */
public byte[] getBytes() throws IOException, CanonicalizationException {
    byte[] inputBytes = getBytesFromInputStream();
    if (inputBytes != null) {
        return inputBytes;
    }
    Canonicalizer20010315OmitComments c14nizer = new Canonicalizer20010315OmitComments();
    bytes = c14nizer.engineCanonicalize(this);
    return bytes;
}
 
Example 17
Source File: XMLSignatureInput.java    From openjdk-8 with GNU General Public License v2.0 3 votes vote down vote up
/**
 * Returns the byte array from input which was specified as the parameter of
 * {@link XMLSignatureInput} constructor
 *
 * @return the byte[] from input which was specified as the parameter of
 * {@link XMLSignatureInput} constructor
 *
 * @throws CanonicalizationException
 * @throws IOException
 */
public byte[] getBytes() throws IOException, CanonicalizationException {
    byte[] inputBytes = getBytesFromInputStream();
    if (inputBytes != null) {
        return inputBytes;
    }
    Canonicalizer20010315OmitComments c14nizer = new Canonicalizer20010315OmitComments();
    bytes = c14nizer.engineCanonicalize(this);
    return bytes;
}
 
Example 18
Source File: XMLSignatureInput.java    From jdk8u-jdk with GNU General Public License v2.0 3 votes vote down vote up
/**
 * Returns the byte array from input which was specified as the parameter of
 * {@link XMLSignatureInput} constructor
 *
 * @return the byte[] from input which was specified as the parameter of
 * {@link XMLSignatureInput} constructor
 *
 * @throws CanonicalizationException
 * @throws IOException
 */
public byte[] getBytes() throws IOException, CanonicalizationException {
    byte[] inputBytes = getBytesFromInputStream();
    if (inputBytes != null) {
        return inputBytes;
    }
    Canonicalizer20010315OmitComments c14nizer = new Canonicalizer20010315OmitComments();
    bytes = c14nizer.engineCanonicalize(this);
    return bytes;
}
 
Example 19
Source File: XMLSignatureInput.java    From jdk8u_jdk with GNU General Public License v2.0 3 votes vote down vote up
/**
 * Returns the byte array from input which was specified as the parameter of
 * {@link XMLSignatureInput} constructor
 *
 * @return the byte[] from input which was specified as the parameter of
 * {@link XMLSignatureInput} constructor
 *
 * @throws CanonicalizationException
 * @throws IOException
 */
public byte[] getBytes() throws IOException, CanonicalizationException {
    byte[] inputBytes = getBytesFromInputStream();
    if (inputBytes != null) {
        return inputBytes;
    }
    Canonicalizer20010315OmitComments c14nizer = new Canonicalizer20010315OmitComments();
    bytes = c14nizer.engineCanonicalize(this);
    return bytes;
}
 
Example 20
Source File: XMLSignatureInput.java    From hottub with GNU General Public License v2.0 3 votes vote down vote up
/**
 * Returns the byte array from input which was specified as the parameter of
 * {@link XMLSignatureInput} constructor
 *
 * @return the byte[] from input which was specified as the parameter of
 * {@link XMLSignatureInput} constructor
 *
 * @throws CanonicalizationException
 * @throws IOException
 */
public byte[] getBytes() throws IOException, CanonicalizationException {
    byte[] inputBytes = getBytesFromInputStream();
    if (inputBytes != null) {
        return inputBytes;
    }
    Canonicalizer20010315OmitComments c14nizer = new Canonicalizer20010315OmitComments();
    bytes = c14nizer.engineCanonicalize(this);
    return bytes;
}