/*
* reserved comment block
* DO NOT REMOVE OR ALTER!
*/
/*
* Copyright 2005 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.
*
*/
/*
*/
/*
* $Id: ApacheTransform.java,v 1.2 2008/07/24 15:20:32 mullan Exp $
*/
/**
* Transform.
*
* @author Sean Mullan
* @author Erwin van der Koogh
*/
static {
}
return params;
}
throws InvalidAlgorithmParameterException {
throw new ClassCastException
("context must be of type DOMCryptoContext");
}
transformElem = (Element)
}
throws MarshalException {
throw new ClassCastException
("context must be of type DOMCryptoContext");
}
transformElem = (Element)
}
throws TransformException {
throw new NullPointerException("data must not be null");
}
}
throws TransformException {
throw new NullPointerException("data must not be null");
}
throw new NullPointerException("output stream must not be null");
}
}
throws TransformException {
throw new TransformException("transform must be marshalled");
}
if (apacheTransform == null) {
try {
apacheTransform = new Transform
+ getAlgorithm());
}
throw new TransformException
}
}
throw new TransformException(
"Transform " + algorithm +
" is forbidden when secure validation is enabled");
}
}
if (data instanceof ApacheData) {
}
} else if (data instanceof NodeSetData) {
}
if (data instanceof DOMSubTreeData) {
}
} else {
}
} else {
}
try {
in = new XMLSignatureInput
throw new TransformException(ex);
}
}
try {
return null;
}
} else {
}
if (in.isOctetStream()) {
return new ApacheOctetStreamData(in);
} else {
return new ApacheNodeSetData(in);
}
throw new TransformException(ex);
}
}
throw new NullPointerException();
} else {
return false;
}
}
}