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

XENCCipherData.hpp

Go to the documentation of this file.
00001 /*
00002  * Copyright 2003-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  * XENCCipherData := Interface for CipherData elements 
00021  *
00022  * $Id: XENCCipherData.hpp,v 1.6 2004/02/08 10:26:00 blautenb Exp $
00023  *
00024  */
00025 
00026 #ifndef XSECCIPHERDATA_INCLUDE
00027 #define XSECCIPHERDATA_INCLUDE
00028 
00029 // XSEC Includes
00030 
00031 #include <xsec/framework/XSECDefs.hpp>
00032 
00033 #include <xsec/xenc/XENCCipherValue.hpp>
00034 #include <xsec/xenc/XENCCipherReference.hpp>
00035 
00066 class XENCCipherData {
00067 
00068 public:
00069 
00074     enum XENCCipherDataType {
00075 
00076         NO_TYPE         = 0,    
00077         VALUE_TYPE      = 1,
00078         REFERENCE_TYPE  = 2,
00079 
00080     };
00081 
00084 
00085 protected:
00086 
00087     XENCCipherData() {};
00088 
00089 public:
00090 
00091     virtual ~XENCCipherData() {};
00092 
00095 
00107     virtual XENCCipherDataType getCipherDataType(void) = 0;
00108 
00115     virtual XENCCipherValue * getCipherValue(void) = 0;
00116 
00123     virtual XENCCipherReference * getCipherReference(void) = 0;
00124 
00131     virtual XERCES_CPP_NAMESPACE_QUALIFIER DOMElement * getElement(void) = 0;
00132 
00134 
00135 private:
00136 
00137     // Unimplemented
00138     XENCCipherData(const XENCCipherData &);
00139     XENCCipherData & operator = (const XENCCipherData &);
00140 
00141 };
00142 
00143 #endif /* XENCCIPHERDATA_INCLUDE */
00144 

Generated on Sun Mar 14 20:20:37 2004 for XML-Security-C by doxygen 1.3.2