/*
* reserved comment block
* DO NOT REMOVE OR ALTER!
*/
/*
* Copyright 1999-2008 The Apache Software Foundation.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*
*/
/**
* Holder of the {@link com.sun.org.apache.xml.internal.security.transforms.Transform} steps to
* be performed on the data.
* The input to the first Transform is the result of dereferencing the
* <code>URI</code> attribute of the <code>Reference</code> element.
* The output from the last Transform is the input for the
* <code>DigestMethod algorithm</code>
*
* @author Christian Geuer-Pollmann
* @see Transform
* @see com.sun.org.apache.xml.internal.security.signature.Reference
*/
/** {@link java.util.logging} logging facility */
/** Canonicalization - Required Canonical XML (omits comments) */
/** Canonicalization - Recommended Canonical XML with Comments */
/** Canonicalization - Required Canonical XML 1.1 (omits comments) */
/** Canonicalization - Recommended Canonical XML 1.1 with Comments */
/** Canonicalization - Required Exclusive Canonicalization (omits comments) */
/** Canonicalization - Recommended Exclusive Canonicalization with Comments */
/** Transform - Optional XSLT */
/** Transform - Required base64 decoding */
/** Transform - Recommended XPath */
/** Transform - Required Enveloped Signature */
/** Transform - XPointer */
/** Transform - XPath Filter v2.0 */
/** Transform - XPath Filter */
/** Transform - XPath Filter CHGP private */
= "http://www.nue.et-inf.uni-siegen.de/~geuer-pollmann/#xpathFilter";
protected Transforms() { };
/**
* Constructs {@link Transforms}.
*
* @param doc the {@link Document} in which <code>XMLSignature</code> will
* be placed
*/
super(doc);
}
/**
* Constructs {@link Transforms} from {@link Element} which is
* <code>Transforms</code> Element
*
* @param element is <code>Transforms</code> element
* @param BaseURI the URI where the XML instance was stored
* @throws DOMException
* @throws InvalidTransformException
* @throws TransformationException
* @throws XMLSecurityException
* @throws XMLSignatureException
*/
throws DOMException, XMLSignatureException,
int numberOfTransformElems = this.getLength();
if (numberOfTransformElems == 0) {
// At least one Transform element must be present. Bad.
}
}
/**
* Adds the <code>Transform</code> with the specified <code>Transform
* algorithm URI</code>
*
* @param transformURI the URI form of transform that indicates which
* transformation is applied to data
* @throws TransformationException
*/
throws TransformationException {
try {
this.addTransform(transform);
} catch (InvalidTransformException ex) {
}
}
/**
* Adds the <code>Transform</code> with the specified <code>Transform
* algorithm URI</code>
*
* @param transformURI the URI form of transform that indicates which
* transformation is applied to data
* @param contextElement
* @throws TransformationException
* @see Transform#getInstance(Document doc, String algorithmURI, Element childElement)
*/
throws TransformationException {
try {
this.addTransform(transform);
} catch (InvalidTransformException ex) {
}
}
/**
* Adds the <code>Transform</code> with the specified <code>Transform
* algorithm URI</code>.
*
* @param transformURI the URI form of transform that indicates which
* transformation is applied to data
* @param contextNodes
* @throws TransformationException
* @see Transform#getInstance(Document doc, String algorithmURI, NodeList contextNodes)
*/
throws TransformationException {
try {
this.addTransform(transform);
} catch (InvalidTransformException ex) {
}
}
/**
* Adds a user-provided Transform step.
*
* @param transform {@link Transform} object
*/
}
/**
* Applies all included <code>Transform</code>s to xmlSignatureInput and
* returns the result of these transformations.
*
* @param xmlSignatureInput the input for the <code>Transform</code>s
* @return the result of the <code>Transforms</code>
* @throws TransformationException
*/
}
/**
* Applies all included <code>Transform</code>s to xmlSignatureInput and
* returns the result of these transformations.
*
* @param xmlSignatureInput the input for the <code>Transform</code>s
* @param os where to output the last transformation.
* @return the result of the <code>Transforms</code>
* @throws TransformationException
*/
throws TransformationException {
try {
for (int i = 0; i < last; i++) {
+ " transform");
}
}
if (last>=0) {
}
return xmlSignatureInput;
} catch (IOException ex) {
} catch (CanonicalizationException ex) {
} catch (InvalidCanonicalizerException ex) {
}
}
/**
* Return the nonnegative number of transformations.
*
* @return the number of transformations
*/
public int getLength()
{
if (transforms == null) {
}
return transforms.length;
}
/**
* Return the <it>i</it><sup>th</sup> <code>{@link Transform}</code>.
* Valid <code>i</code> values are 0 to <code>{@link #getLength}-1</code>.
*
* @param i index of {@link Transform} to return
* @return the <it>i</it><sup>th</sup> Transform
* @throws TransformationException
*/
try {
if (transforms == null) {
}
} catch (XMLSecurityException ex) {
}
}
/** @inheritDoc */
return Constants._TAG_TRANSFORMS;
}
}