1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152
|
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html><head><meta http-equiv="Content-Type" content="text/html;charset=iso-8859-1">
<title>XML-Security-C: DSIGKeyInfoX509.hpp Source File</title>
<link href="doxygen.css" rel="stylesheet" type="text/css">
</head><body>
<!-- Generated by Doxygen 1.4.2 -->
<div class="qindex"><a class="qindex" href="index.html">Main Page</a> | <a class="qindex" href="modules.html">Modules</a> | <a class="qindex" href="hierarchy.html">Class Hierarchy</a> | <a class="qindex" href="annotated.html">Class List</a> | <a class="qindex" href="dirs.html">Directories</a> | <a class="qindex" href="files.html">File List</a> | <a class="qindex" href="functions.html">Class Members</a> | <a class="qindex" href="globals.html">File Members</a> | <a class="qindex" href="pages.html">Related Pages</a></div>
<div class="nav">
<a class="el" href="dir_000000.html">src</a> / <a class="el" href="dir_000001.html">dsig</a></div>
<h1>DSIGKeyInfoX509.hpp</h1><a href="DSIGKeyInfoX509_8hpp.html">Go to the documentation of this file.</a><div class="fragment"><pre class="fragment">00001 <span class="comment">/*</span>
00002 <span class="comment"> * Copyright 2002-2005 The Apache Software Foundation.</span>
00003 <span class="comment"> *</span>
00004 <span class="comment"> * Licensed under the Apache License, Version 2.0 (the "License");</span>
00005 <span class="comment"> * you may not use this file except in compliance with the License.</span>
00006 <span class="comment"> * You may obtain a copy of the License at</span>
00007 <span class="comment"> *</span>
00008 <span class="comment"> * http://www.apache.org/licenses/LICENSE-2.0</span>
00009 <span class="comment"> *</span>
00010 <span class="comment"> * Unless required by applicable law or agreed to in writing, software</span>
00011 <span class="comment"> * distributed under the License is distributed on an "AS IS" BASIS,</span>
00012 <span class="comment"> * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.</span>
00013 <span class="comment"> * See the License for the specific language governing permissions and</span>
00014 <span class="comment"> * limitations under the License.</span>
00015 <span class="comment"> */</span>
00016
00017 <span class="comment">/*</span>
00018 <span class="comment"> * XSEC</span>
00019 <span class="comment"> *</span>
00020 <span class="comment"> * DSIGKeyInfoX509 := A "Super" key that defines a certificate with a sub-key that defines</span>
00021 <span class="comment"> * the signing key</span>
00022 <span class="comment"> *</span>
00023 <span class="comment"> * $Id: DSIGKeyInfoX509.hpp,v 1.13 2005/06/04 11:30:25 blautenb Exp $</span>
00024 <span class="comment"> *</span>
00025 <span class="comment"> */</span>
00026
00027 <span class="preprocessor">#ifndef DSIGKEYINFOX509_INCLUDE</span>
00028 <span class="preprocessor"></span><span class="preprocessor">#define DSIGKEYINFOX509_INCLUDE</span>
00029 <span class="preprocessor"></span>
00030 <span class="preprocessor">#include <xsec/utils/XSECSafeBuffer.hpp></span>
00031 <span class="preprocessor">#include <xsec/dsig/DSIGKeyInfo.hpp></span>
00032 <span class="preprocessor">#include <xsec/enc/XSECCryptoX509.hpp></span>
00033
00034 <span class="preprocessor">#include <vector></span>
00035
00036 <a class="code" href="XSECDefs_8hpp.html#a4">XSEC_USING_XERCES</a>(DOMElement);
00037
<a name="l00051"></a><a class="code" href="classDSIGKeyInfoX509.html">00051</a> <span class="keyword">class </span><a class="code" href="XSECDefs_8hpp.html#a9">DSIG_EXPORT</a> <a class="code" href="classDSIGKeyInfoX509.html">DSIGKeyInfoX509</a> : <span class="keyword">public</span> <a class="code" href="classDSIGKeyInfo.html">DSIGKeyInfo</a> {
00052
00053 <span class="keyword">public</span>:
00054
00055
<a name="l00056"></a><a class="code" href="structDSIGKeyInfoX509_1_1X509Holder.html">00056</a> <span class="keyword">struct </span><a class="code" href="structDSIGKeyInfoX509_1_1X509Holder.html">X509Holder</a> {
00057
<a name="l00058"></a><a class="code" href="structDSIGKeyInfoX509_1_1X509Holder.html#o0">00058</a> <span class="keyword">const</span> XMLCh * mp_encodedX509; <span class="comment">// Base64 encoding</span>
<a name="l00059"></a><a class="code" href="structDSIGKeyInfoX509_1_1X509Holder.html#o1">00059</a> <a class="code" href="classXSECCryptoX509.html">XSECCryptoX509</a> * mp_cryptoX509; <span class="comment">// The certificate</span>
00060
00061 };
00062
00063 <span class="preprocessor">#if defined(XSEC_NO_NAMESPACES)</span>
00064 <span class="preprocessor"></span> <span class="keyword">typedef</span> vector<X509Holder *> X509ListType;
00065 <span class="preprocessor">#else</span>
<a name="l00066"></a><a class="code" href="classDSIGKeyInfoX509.html#w0">00066</a> <span class="preprocessor"></span> <span class="keyword">typedef</span> std::vector<X509Holder *> X509ListType;
00067 <span class="preprocessor">#endif</span>
00068 <span class="preprocessor"></span>
00069 <span class="preprocessor">#if defined(XSEC_SIZE_T_IN_NAMESPACE_STD)</span>
00070 <span class="preprocessor"></span> <span class="keyword">typedef</span> std::size_t size_type;
00071 <span class="preprocessor">#else</span>
<a name="l00072"></a><a class="code" href="classDSIGKeyInfoX509.html#w1">00072</a> <span class="preprocessor"></span> <span class="keyword">typedef</span> size_t size_type;
00073 <span class="preprocessor">#endif</span>
00074 <span class="preprocessor"></span>
00077
00088 <a class="code" href="classDSIGKeyInfoX509.html">DSIGKeyInfoX509</a>(<span class="keyword">const</span> <a class="code" href="classXSECEnv.html">XSECEnv</a> * env, <a class="code" href="XSECDefs_8hpp.html#a0">XERCES_CPP_NAMESPACE_QUALIFIER</a> DOMNode *X509Data);
00089
00099 <a class="code" href="classDSIGKeyInfoX509.html">DSIGKeyInfoX509</a>(<span class="keyword">const</span> <a class="code" href="classXSECEnv.html">XSECEnv</a> * env);
00100
00105 <span class="keyword">virtual</span> ~<a class="code" href="classDSIGKeyInfoX509.html">DSIGKeyInfoX509</a>();
00106
00108
00111
00119 <span class="keyword">virtual</span> <span class="keywordtype">void</span> <a class="code" href="classDSIGKeyInfo.html#z2_0">load</a>();
00120
00131 <span class="keyword">const</span> XMLCh * getX509SubjectName(<span class="keywordtype">void</span>);
00132
00144 <span class="keyword">const</span> XMLCh * <a class="code" href="classDSIGKeyInfo.html#z1_2">getKeyName</a>(<span class="keywordtype">void</span>);
00145
00155 <span class="keyword">const</span> XMLCh * getX509IssuerName(<span class="keywordtype">void</span>);
00156
00168 <span class="keyword">const</span> XMLCh * getX509IssuerSerialNumber(<span class="keywordtype">void</span>);
00169
00180 <span class="keyword">const</span> XMLCh * getX509CRL(<span class="keywordtype">void</span>);
00181
00192 <span class="keyword">const</span> XMLCh * getX509SKI(<span class="keywordtype">void</span>);
00193
00202 <span class="keyword">const</span> XMLCh * getRawRetrievalURI(<span class="keywordtype">void</span>);
00203
00212 <span class="keywordtype">int</span> getCertificateListSize(<span class="keywordtype">void</span>);
00213
00224 <span class="keyword">const</span> XMLCh * getCertificateItem(<span class="keywordtype">int</span> item);
00225
00235 <a class="code" href="classXSECCryptoX509.html">XSECCryptoX509</a> * getCertificateCryptoItem(<span class="keywordtype">int</span> item);
00236
<a name="l00241"></a><a class="code" href="classDSIGKeyInfoX509.html#z29_11">00241</a> <span class="keyword">virtual</span> keyInfoType <a class="code" href="classDSIGKeyInfo.html#z1_0">getKeyInfoType</a>(<span class="keywordtype">void</span>) {<span class="keywordflow">return</span> <a class="code" href="classDSIGKeyInfo.html#w9w1">DSIGKeyInfo::KEYINFO_X509</a>;}
00242
00244
00247
00257 <a class="code" href="XSECDefs_8hpp.html#a0">XERCES_CPP_NAMESPACE_QUALIFIER</a> DOMElement *
00258 createBlankX509Data(<span class="keywordtype">void</span>);
00259
00273 <span class="keywordtype">void</span> setX509SubjectName(<span class="keyword">const</span> XMLCh * name);
00274
00289 <span class="keywordtype">void</span> setX509IssuerSerial(<span class="keyword">const</span> XMLCh * name, <span class="keyword">const</span> XMLCh * serial);
00290
00300 <span class="keywordtype">void</span> setX509CRL(<span class="keyword">const</span> XMLCh * crl);
00301
00314 <span class="keywordtype">void</span> setX509SKI(<span class="keyword">const</span> XMLCh * ski);
00315
00326 <span class="keywordtype">void</span> setRawRetrievalURI(<span class="keyword">const</span> XMLCh * uri);
00327
00338 <span class="keywordtype">void</span> appendX509Certificate(<span class="keyword">const</span> XMLCh * base64Certificate);
00339
00341
00342
00343 <span class="keyword">private</span>:
00344
00345 <a class="code" href="classDSIGKeyInfoX509.html">DSIGKeyInfoX509</a>();
00346
00347 X509ListType m_X509List; <span class="comment">// The X509 structures</span>
00348 XMLCh * mp_X509IssuerName; <span class="comment">// Parameters from KeyInfo (not cert)</span>
00349 <span class="keyword">const</span> XMLCh * mp_X509SerialNumber;
00350 XMLCh * mp_X509SubjectName;
00351 <span class="keyword">const</span> XMLCh * mp_X509CRL;
00352 <span class="keyword">const</span> XMLCh * mp_X509SKI;
00353 XMLCh * mp_rawRetrievalURI;
00354
00355 <span class="comment">// Text nodes holding information</span>
00356
00357 <a class="code" href="XSECDefs_8hpp.html#a0">XERCES_CPP_NAMESPACE_QUALIFIER</a> DOMNode * mp_X509SubjectNameTextNode;
00358 <a class="code" href="XSECDefs_8hpp.html#a0">XERCES_CPP_NAMESPACE_QUALIFIER</a> DOMNode * mp_X509IssuerNameTextNode;
00359 <a class="code" href="XSECDefs_8hpp.html#a0">XERCES_CPP_NAMESPACE_QUALIFIER</a> DOMNode * mp_X509SerialNumberTextNode;
00360 <a class="code" href="XSECDefs_8hpp.html#a0">XERCES_CPP_NAMESPACE_QUALIFIER</a> DOMNode * mp_X509CRLTextNode;
00361 <a class="code" href="XSECDefs_8hpp.html#a0">XERCES_CPP_NAMESPACE_QUALIFIER</a> DOMNode * mp_X509SKITextNode;
00362
00363 };
00364
00365
00366
00367 <span class="preprocessor">#endif </span><span class="comment">/* #define DSIGKEYX509_INCLUDE */</span>
</pre></div><hr size="1"><address style="align: right;"><small>Generated on Sun Jul 3 17:37:25 2005 for XML-Security-C by
<a href="http://www.doxygen.org/index.html">
<img src="doxygen.png" alt="doxygen" align="middle" border="0"></a> 1.4.2 </small></address>
</body>
</html>
|