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

DSIGKeyInfoName.hpp

Go to the documentation of this file.
00001 /*
00002  * Copyright 2002-2005 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  * limitations 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.11 2005/06/04 11:30:25 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 
00050 class DSIG_EXPORT DSIGKeyInfoName : public DSIGKeyInfo {
00051 
00052 public:
00053 
00056 
00067     DSIGKeyInfoName(const XSECEnv * env, XERCES_CPP_NAMESPACE_QUALIFIER DOMNode *nameNode);
00068 
00079     DSIGKeyInfoName(const XSECEnv * env);
00080 
00085     virtual ~DSIGKeyInfoName();
00086 
00088 
00091 
00096     virtual void load(void);
00097 
00106     virtual const XMLCh * getKeyName(void) {return mp_name;};
00107 
00117     virtual const XMLCh * getDecodedKeyName(void);
00118 
00120 
00123     
00136     XERCES_CPP_NAMESPACE_QUALIFIER DOMElement * createBlankKeyName(const XMLCh * name, bool isDName = false);
00137 
00148     void setKeyName(const XMLCh * name, bool isDName = false);
00149 
00151 
00154     
00159     virtual keyInfoType getKeyInfoType(void) {return DSIGKeyInfo::KEYINFO_NAME;}
00160 
00162 
00163 private:
00164 
00165     DSIGKeyInfoName();                          // Non-implemented constructor
00166 
00167     const XMLCh         * mp_name;              // The Data stored in the XML file
00168     XMLCh               * mp_decodedDName;      // When this is a DName that needs decoding
00169     XERCES_CPP_NAMESPACE_QUALIFIER DOMNode              
00170                         * mp_keyNameTextNode;   // Text node containing the name
00171 
00172 };
00173 
00174 
00175 
00176 #endif /* #define DSIGKEYNAME_INCLUDE */

Generated on Sun Jul 3 17:37:25 2005 for XML-Security-C by  doxygen 1.4.2