javax.xml.crypto.dsig

Interface Transform

    • Method Detail

      • getParameterSpec

        java.security.spec.AlgorithmParameterSpec getParameterSpec()
        Returns the algorithm-specific input parameters associated with this Transform.

        The returned parameters can be typecast to a TransformParameterSpec object.

        Specified by:
        getParameterSpec in interface AlgorithmMethod
        Returns:
        the algorithm-specific input parameters (may be null if not specified)
      • transform

        Data transform(Data data,
                       XMLCryptoContext context)
                throws TransformException
        Transforms the specified data using the underlying transform algorithm.
        Parameters:
        data - the data to be transformed
        context - the XMLCryptoContext containing additional context (may be null if not applicable)
        Returns:
        the transformed data
        Throws:
        java.lang.NullPointerException - if data is null
        TransformException - if an error occurs while executing the transform
      • transform

        Data transform(Data data,
                       XMLCryptoContext context,
                       java.io.OutputStream os)
                throws TransformException
        Transforms the specified data using the underlying transform algorithm. If the output of this transform is an OctetStreamData, then this method returns null and the bytes are written to the specified OutputStream. Otherwise, the OutputStream is ignored and the method behaves as if transform(Data, XMLCryptoContext) were invoked.
        Parameters:
        data - the data to be transformed
        context - the XMLCryptoContext containing additional context (may be null if not applicable)
        os - the OutputStream that should be used to write the transformed data to
        Returns:
        the transformed data (or null if the data was written to the OutputStream parameter)
        Throws:
        java.lang.NullPointerException - if data or os is null
        TransformException - if an error occurs while executing the transform
XML Security (JSR 105/106), 1.8

Copyright © 2015 IBM Corporation. All Rights Reserved.