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

DSIGKeyInfoSPKIData.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  * DSIGKeyInfoSPKIData := SPKI Information
00021  *
00022  * Author(s): Berin Lautenbach
00023  *
00024  * $Id: DSIGKeyInfoSPKIData.hpp,v 1.7 2004/02/08 10:20:51 blautenb Exp $
00025  *
00026  */
00027 
00028 #ifndef DSIGKEYINFOSPKIDATA_INCLUDE
00029 #define DSIGKEYINFOSPKIDATA_INCLUDE
00030 
00031 #include <xsec/dsig/DSIGKeyInfo.hpp>
00032 #include <xsec/utils/XSECPlatformUtils.hpp>
00033 
00034 XSEC_DECLARE_XERCES_CLASS(DOMElement);
00035 
00036 #include <vector>
00037 
00053 class DSIG_EXPORT DSIGKeyInfoSPKIData : public DSIGKeyInfo {
00054 
00055 public:
00056 
00059 
00070     DSIGKeyInfoSPKIData(const XSECEnv * env, 
00071                         XERCES_CPP_NAMESPACE_QUALIFIER DOMNode *nameNode);
00072 
00083     DSIGKeyInfoSPKIData(const XSECEnv * env);
00084 
00089     virtual ~DSIGKeyInfoSPKIData();
00090 
00092 
00095 
00100     void load(void);
00101 
00110     unsigned int getSexpSize(void);
00111 
00122     virtual const XMLCh * getSexp(unsigned int index);
00123 
00128     virtual const XMLCh * getKeyName(void) {return NULL;}
00129 
00131 
00134     
00135     
00146     XERCES_CPP_NAMESPACE_QUALIFIER DOMElement * 
00147         createBlankSPKIData(const XMLCh * Sexp);
00148 
00158     void appendSexp(const XMLCh * Sexp);
00159 
00161 
00164     
00169     virtual keyInfoType getKeyInfoType(void) {return DSIGKeyInfo::KEYINFO_SPKIDATA;}
00170 
00172 
00173 private:
00174 
00175     DSIGKeyInfoSPKIData();                      // Non-implemented constructor
00176 
00177     struct SexpNode {
00178         const XMLCh     * mp_expr;
00179         XERCES_CPP_NAMESPACE_QUALIFIER DOMNode          
00180                         * mp_exprTextNode;
00181     };
00182 
00183     typedef std::vector<SexpNode *> sexpVectorType;
00184 
00185     sexpVectorType      m_sexpList;
00186 
00187 };
00188 
00189 
00190 
00191 #endif /* #define DSIGKEYSPKIDATA_INCLUDE */

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