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

XENCEncryptedType.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  * XENCEncryptedType := Definition for holder object for EncryptedType 
00021  * element
00022  *
00023  * Author(s): Berin Lautenbach
00024  *
00025  * $Id: XENCEncryptedType.hpp,v 1.10 2004/02/08 10:26:00 blautenb Exp $
00026  *
00027  */
00028 
00029 #ifndef XENCENCRYPTEDTYPE_INCLUDE
00030 #define XENCENCRYPTEDTYPE_INCLUDE
00031 
00032 // XSEC Includes
00033 
00034 #include <xsec/framework/XSECDefs.hpp>
00035 
00036 class XENCCipherData;
00037 class DSIGKeyInfoList;
00038 class DSIGKeyInfoName;
00039 class XENCEncryptionMethod;
00040 class XENCEncryptedKey;
00041 
00081 class XENCEncryptedType {
00082 
00085 
00086 protected:
00087 
00088     XENCEncryptedType() {};
00089 
00090 public:
00091 
00092     virtual ~XENCEncryptedType() {};
00093 
00096 
00106     virtual XENCCipherData * getCipherData(void) const = 0;
00107 
00120     virtual XENCEncryptionMethod * getEncryptionMethod(void) const = 0;
00121 
00128     virtual XERCES_CPP_NAMESPACE_QUALIFIER DOMElement * getElement(void) const = 0;
00129 
00131 
00134 
00147     virtual const XMLCh * getType(void) const = 0;
00148 
00163     virtual const XMLCh * getMimeType(void) const = 0;
00164 
00178     virtual const XMLCh * getEncoding(void) const = 0;
00179 
00181 
00184 
00197     virtual void setType(const XMLCh * uri) = 0;
00198 
00214     virtual void setMimeType(const XMLCh * mimeType) = 0;
00215 
00231     virtual void setEncoding(const XMLCh * uri) = 0;
00232 
00234 
00238 
00254     virtual DSIGKeyInfoList * getKeyInfoList(void) = 0;
00255 
00264     virtual void clearKeyInfo(void) = 0;
00265 
00276     virtual DSIGKeyInfoName * appendKeyName(const XMLCh * name, bool isDName = false) = 0;
00277 
00289     virtual void appendEncryptedKey(XENCEncryptedKey * encryptedKey) = 0;
00291 
00292 private:
00293 
00294     // Unimplemented
00295     XENCEncryptedType(const XENCEncryptedType &);
00296     XENCEncryptedType & operator = (const XENCEncryptedType &);
00297 
00298 };
00299 
00300 #endif /* XENCENCRYPTEDTYPE_INCLUDE */

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