Main Page | Modules | Class Hierarchy | Compound List | File List | Compound Members | File Members | Related Pages

DSIGTransform.hpp

Go to the documentation of this file.
00001 /*
00002  * Copyright 2002-2004 The Apache Software Foundation.
00003  *
00004  * Licensed under the Apache License, Version 2.0 (the "License");
00005  * you may not use this file except in compliance with the License.
00006  * You may obtain a copy of the License at
00007  *
00008  *     http://www.apache.org/licenses/LICENSE-2.0
00009  *
00010  * Unless required by applicable law or agreed to in writing, software
00011  * distributed under the License is distributed on an "AS IS" BASIS,
00012  * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
00013  * See the License for the specific language governing permissions and
00014  * imitations under the License.
00015  */
00016 
00017 /*
00018  * XSEC
00019  *
00020  * DSIGTransform := Base (virtual) class that defines a DSIG Transform
00021  *
00022  * Author(s): Berin Lautenbach
00023  *
00024  * $Id: DSIGTransform.hpp,v 1.8 2004/02/08 10:20:51 blautenb Exp $
00025  *
00026  */
00027 
00028 #ifndef DSIGTRANSFORM_INCLUDE
00029 #define DSIGTRANSFORM_INCLUDE
00030 
00031 #include <xsec/dsig/DSIGConstants.hpp>
00032 #include <xsec/framework/XSECDefs.hpp>
00033 
00034 XSEC_DECLARE_XERCES_CLASS(DOMNode);
00035 XSEC_DECLARE_XERCES_CLASS(DOMElement);
00036 XSEC_DECLARE_XERCES_CLASS(DOMDocument);
00037 
00038 #include <stdio.h>
00039 
00040 class XSECEnv;
00041 class TXFMChain;
00042 
00062 class DSIG_EXPORT DSIGTransform {
00063 
00064 public:
00065 
00068     
00083     DSIGTransform(const XSECEnv * env, XERCES_CPP_NAMESPACE_QUALIFIER DOMNode * node) : 
00084           mp_txfmNode(node),
00085           mp_env(env) {};
00086 
00099     DSIGTransform(const XSECEnv * env) : 
00100           mp_txfmNode(NULL),
00101           mp_env(env) {};
00102 
00103           
00112     virtual ~DSIGTransform() {};
00113     
00115 
00119 
00127     virtual transformType getTransformType() = 0;
00128     
00136     virtual void appendTransformer(TXFMChain * input) = 0;
00137 
00145     virtual XERCES_CPP_NAMESPACE_QUALIFIER DOMElement * 
00146         createBlankTransform(XERCES_CPP_NAMESPACE_QUALIFIER DOMDocument * parentDoc) = 0;
00147 
00155     virtual void load(void) = 0;
00156 
00158 
00159 protected:
00160 
00164 
00170     XERCES_CPP_NAMESPACE_QUALIFIER DOMElement * createTransformNode();
00171 
00172 
00173     XERCES_CPP_NAMESPACE_QUALIFIER DOMNode                  
00174                             * mp_txfmNode;          // The node that we read from
00175     const XSECEnv           * mp_env;   // Owning signature
00176 
00177 private:
00178 
00179     DSIGTransform();
00180     DSIGTransform(const DSIGTransform &theOther);
00181 
00182 };
00183 
00184 
00185 
00186 #endif /* #define DSIGTRANSFORM_INCLUDE */

Generated on Sun Mar 14 21:35:27 2004 for XML-Security-C by doxygen 1.3.2