
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.transform(Data, XMLCryptoContext) were invoked.
Returns:
the transformed data (or
null if the data was
written to the
OutputStream parameter)
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
Throws:
-
NullPointerException - if
data or
os
is
null
-
TransformException - if an error occurs while executing the
transform