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

DSIGKeyInfoPGPData.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  * DSIGKeyInfoPGPData := Contains a key pointer to a PGP key
00021  *
00022  * Author(s): Berin Lautenbach
00023  *
00024  * $Id: DSIGKeyInfoPGPData.hpp,v 1.6 2004/02/08 10:20:51 blautenb Exp $
00025  *
00026  */
00027 
00028 #ifndef DSIGKEYINFOPGPDATA_INCLUDE
00029 #define DSIGKEYINFOPGPDATA_INCLUDE
00030 
00031 #include <xsec/utils/XSECSafeBuffer.hpp>
00032 #include <xsec/dsig/DSIGKeyInfo.hpp>
00033 #include <xsec/utils/XSECPlatformUtils.hpp>
00034 
00035 XSEC_DECLARE_XERCES_CLASS(DOMElement);
00036 
00052 class DSIG_EXPORT DSIGKeyInfoPGPData : public DSIGKeyInfo {
00053 
00054 public:
00055 
00058 
00069     DSIGKeyInfoPGPData(const XSECEnv * env, 
00070                        XERCES_CPP_NAMESPACE_QUALIFIER DOMNode *pgpDataNode);
00071 
00082     DSIGKeyInfoPGPData(const XSECEnv * env);
00083 
00088     virtual ~DSIGKeyInfoPGPData();
00089 
00091 
00094 
00099     virtual void load(void);
00100 
00110     virtual const XMLCh * getKeyID(void) {return mp_keyID;}
00111 
00121     virtual const XMLCh * getKeyPacket(void) {return mp_keyPacket;}
00122 
00127     virtual const XMLCh * getKeyName(void) {return NULL;}
00128 
00130 
00133     
00145     XERCES_CPP_NAMESPACE_QUALIFIER DOMElement * 
00146         createBlankPGPData(const XMLCh * id, const XMLCh * packet);
00147 
00156     void setKeyID(const XMLCh * id);
00157 
00166     void setKeyPacket(const XMLCh * packet);
00167 
00169 
00172     
00177     virtual keyInfoType getKeyInfoType(void) {return DSIGKeyInfo::KEYINFO_PGPDATA;}
00178 
00180 
00181 private:
00182 
00183     DSIGKeyInfoPGPData();                       // Non-implemented constructor
00184 
00185     const XMLCh         * mp_keyID;             // Key ID (from DOM)
00186     const XMLCh         * mp_keyPacket;         // key Packet (from DOM)
00187     XERCES_CPP_NAMESPACE_QUALIFIER DOMNode              
00188                         * mp_keyIDTextNode;     // Text node containing the ID
00189     XERCES_CPP_NAMESPACE_QUALIFIER DOMNode              
00190                         * mp_keyPacketTextNode; // Text node contianing key packet
00191 };
00192 
00193 
00194 
00195 #endif /* #define DSIGKEYINFOPGPDATA_INCLUDE */

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