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

DSIGKeyInfoName.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  * DSIGKeyInfoX509 := A "Super" key that defines a certificate with a sub-key that defines
00021  *                the signing key
00022  *
00023  * $Id: DSIGKeyInfoName.hpp,v 1.8 2004/02/08 10:20:51 blautenb Exp $
00024  *
00025  */
00026 
00027 #ifndef DSIGKEYINFONAME_INCLUDE
00028 #define DSIGKEYINFONAME_INCLUDE
00029 
00030 #include <xsec/utils/XSECSafeBuffer.hpp>
00031 #include <xsec/dsig/DSIGKeyInfo.hpp>
00032 #include <xsec/utils/XSECPlatformUtils.hpp>
00033 
00034 XSEC_DECLARE_XERCES_CLASS(DOMElement);
00035 
00051 class DSIG_EXPORT DSIGKeyInfoName : public DSIGKeyInfo {
00052 
00053 public:
00054 
00057 
00068     DSIGKeyInfoName(const XSECEnv * env, XERCES_CPP_NAMESPACE_QUALIFIER DOMNode *nameNode);
00069 
00080     DSIGKeyInfoName(const XSECEnv * env);
00081 
00086     virtual ~DSIGKeyInfoName();
00087 
00089 
00092 
00097     virtual void load(void);
00098 
00107     virtual const XMLCh * getKeyName(void) {return mp_name;};
00108 
00118     virtual const XMLCh * getDecodedKeyName(void);
00119 
00121 
00124     
00137     XERCES_CPP_NAMESPACE_QUALIFIER DOMElement * createBlankKeyName(const XMLCh * name, bool isDName = false);
00138 
00149     void setKeyName(const XMLCh * name, bool isDName = false);
00150 
00152 
00155     
00160     virtual keyInfoType getKeyInfoType(void) {return DSIGKeyInfo::KEYINFO_NAME;}
00161 
00163 
00164 private:
00165 
00166     DSIGKeyInfoName();                          // Non-implemented constructor
00167 
00168     const XMLCh         * mp_name;              // The Data stored in the XML file
00169     XMLCh               * mp_decodedDName;      // When this is a DName that needs decoding
00170     XERCES_CPP_NAMESPACE_QUALIFIER DOMNode              
00171                         * mp_keyNameTextNode;   // Text node containing the name
00172 
00173 };
00174 
00175 
00176 
00177 #endif /* #define DSIGKEYNAME_INCLUDE */

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