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 * DSIGKeyInfoMgmtData := MgmtData - used for conveying in-band key data 00021 * 00022 * Author(s): Berin Lautenbach 00023 * 00024 * $Id: DSIGKeyInfoMgmtData.hpp,v 1.9 2005/06/04 11:30:25 blautenb Exp $ 00025 * 00026 */ 00027 00028 #ifndef DSIGKEYINFOMGMTDATA_INCLUDE 00029 #define DSIGKEYINFOMGMTDATA_INCLUDE 00030 00031 #include <xsec/dsig/DSIGKeyInfo.hpp> 00032 #include <xsec/utils/XSECPlatformUtils.hpp> 00033 00034 XSEC_DECLARE_XERCES_CLASS(DOMElement); 00035 00051 class DSIG_EXPORT DSIGKeyInfoMgmtData : public DSIGKeyInfo { 00052 00053 public: 00054 00057 00068 DSIGKeyInfoMgmtData(const XSECEnv * env, XERCES_CPP_NAMESPACE_QUALIFIER DOMNode *nameNode); 00069 00080 DSIGKeyInfoMgmtData(const XSECEnv * env); 00081 00086 virtual ~DSIGKeyInfoMgmtData(); 00087 00089 00092 00097 virtual void load(void); 00098 00103 virtual const XMLCh * getKeyName(void) {return NULL;} 00104 00113 virtual const XMLCh * getData(void) {return mp_data;}; 00114 00116 00119 00130 XERCES_CPP_NAMESPACE_QUALIFIER DOMElement * createBlankMgmtData(const XMLCh * data); 00131 00140 void setData(const XMLCh * data); 00141 00143 00146 00151 virtual keyInfoType getKeyInfoType(void) {return DSIGKeyInfo::KEYINFO_MGMTDATA;} 00152 00154 00155 private: 00156 00157 DSIGKeyInfoMgmtData(); // Non-implemented constructor 00158 00159 const XMLCh * mp_data; // The Data stored in the XML file 00160 XERCES_CPP_NAMESPACE_QUALIFIER DOMNode 00161 * mp_dataTextNode; // Text node containing the name 00162 00163 }; 00164 00165 00166 00167 #endif /* #define DSIGKEYINFOMGMTDATA_INCLUDE */ 00168