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 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 224 225 226 227 228 229 230 231 232 233 234 235 236 237 238 239 240 241 242 243 244 245 246 247 248 249 250 251 252 253 254 255 256 257 258 259 260 261 262 263 264 265 266 267 268 269 270 271 272 273 274 275 276 277 278 279 280 281 282 283 284 285 286 287 288 289 290 291 292 293 294 295 296 297 298 299 300 301 302 303 304 305 306 307 308 309 310 311 312 313 314 315 316 317 318 319 320 321 322 323 324 325 326 327 328 329 330 331 332 333 334 335 336 337 338 339 340 341 342 343 344 345 346 347 348 349 350 351 352 353 354 355 356 357 358 359 360 361 362 363 364
|
<!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: WinCAPICryptoX509 Class Reference</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>
<h1>WinCAPICryptoX509 Class Reference<br>
<small>
[<a class="el" href="group__wincapicrypto.html">Windows Crypto API Interface</a>]</small>
</h1><code>#include <<a class="el" href="WinCAPICryptoX509_8hpp-source.html">WinCAPICryptoX509.hpp</a>></code>
<p>
Inheritance diagram for WinCAPICryptoX509:<p><center><img src="classWinCAPICryptoX509__inherit__graph.png" border="0" usemap="#WinCAPICryptoX509__inherit__map" alt="Inheritance graph"></center>
<map name="WinCAPICryptoX509__inherit__map">
<area href="classXSECCryptoX509.html" shape="rect" coords="16,9,146,33" alt="">
</map>
<center><font size="2">[<a href="graph_legend.html">legend</a>]</font></center>Collaboration diagram for WinCAPICryptoX509:<p><center><img src="classWinCAPICryptoX509__coll__graph.png" border="0" usemap="#WinCAPICryptoX509__coll__map" alt="Collaboration graph"></center>
<map name="WinCAPICryptoX509__coll__map">
<area href="classXSECCryptoX509.html" shape="rect" coords="8,9,138,33" alt="">
<area href="classsafeBuffer.html" shape="rect" coords="162,9,245,33" alt="">
</map>
<center><font size="2">[<a href="graph_legend.html">legend</a>]</font></center><a href="classWinCAPICryptoX509-members.html">List of all members.</a><hr><a name="_details"></a><h2>Detailed Description</h2>
WinCAPI implementation class for interface for X509 certificates.
<p>
The library uses classes derived from this to process X509 Certificates.
<p>
<table border="0" cellpadding="0" cellspacing="0">
<tr><td></td></tr>
<tr><td colspan="2"><br><h2>Public Member Functions</h2></td></tr>
<tr><td colspan="2"><div class="groupHeader">Constructors and Destructors</div></td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top"> </td><td class="memItemRight" valign="bottom"><a class="el" href="classWinCAPICryptoX509.html#z144_0">WinCAPICryptoX509</a> (HCRYPTPROV provRSA, HCRYPTPROV provDSS)</td></tr>
<tr><td class="mdescLeft"> </td><td class="mdescRight">Constructor for X509 objects. <a href="#z144_0"></a><br></td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top"> </td><td class="memItemRight" valign="bottom"><a class="el" href="classWinCAPICryptoX509.html#z144_1">WinCAPICryptoX509</a> (PCCERT_CONTEXT pCertContext, HCRYPTPROV provRSA, HCRYPTPROV provDSS)</td></tr>
<tr><td class="mdescLeft"> </td><td class="mdescRight">Constructor for X509 objects. <a href="#z144_1"></a><br></td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top">virtual </td><td class="memItemRight" valign="bottom"><a class="el" href="classWinCAPICryptoX509.html#z144_2">~WinCAPICryptoX509</a> ()</td></tr>
<tr><td colspan="2"><div class="groupHeader">Key Interface methods</div></td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top">virtual <a class="el" href="classXSECCryptoKey.html#w9">XSECCryptoKey::KeyType</a> </td><td class="memItemRight" valign="bottom"><a class="el" href="classWinCAPICryptoX509.html#z145_0">getPublicKeyType</a> ()</td></tr>
<tr><td class="mdescLeft"> </td><td class="mdescRight">Return the type of the key stored in the certificate. <a href="#z145_0"></a><br></td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top">virtual <a class="el" href="classXSECCryptoKey.html">XSECCryptoKey</a> * </td><td class="memItemRight" valign="bottom"><a class="el" href="classWinCAPICryptoX509.html#z145_1">clonePublicKey</a> ()</td></tr>
<tr><td class="mdescLeft"> </td><td class="mdescRight">Get a copy of the public key. <a href="#z145_1"></a><br></td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top">virtual const XMLCh * </td><td class="memItemRight" valign="bottom"><a class="el" href="classWinCAPICryptoX509.html#z145_2">getProviderName</a> ()</td></tr>
<tr><td class="mdescLeft"> </td><td class="mdescRight">Returns a string that identifies the crypto owner of this library. <a href="#z145_2"></a><br></td></tr>
<tr><td colspan="2"><div class="groupHeader">Load and Get the certificate</div></td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top">virtual void </td><td class="memItemRight" valign="bottom"><a class="el" href="classWinCAPICryptoX509.html#z146_0">loadX509Base64Bin</a> (const char *buf, unsigned int len)</td></tr>
<tr><td class="mdescLeft"> </td><td class="mdescRight">Load a certificate into the object. <a href="#z146_0"></a><br></td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top">virtual <a class="el" href="classsafeBuffer.html">safeBuffer</a> & </td><td class="memItemRight" valign="bottom"><a class="el" href="classWinCAPICryptoX509.html#z146_1">getDEREncodingSB</a> (void)</td></tr>
<tr><td class="mdescLeft"> </td><td class="mdescRight">Get a Base64 DER encoded copy of the certificate. <a href="#z146_1"></a><br></td></tr>
</table>
<hr><h2>Constructor & Destructor Documentation</h2>
<a class="anchor" name="z144_0" doxytag="WinCAPICryptoX509::WinCAPICryptoX509"></a><p>
<table class="mdTable" cellpadding="2" cellspacing="0">
<tr>
<td class="mdRow">
<table cellpadding="0" cellspacing="0" border="0">
<tr>
<td class="md" nowrap valign="top">WinCAPICryptoX509::WinCAPICryptoX509 </td>
<td class="md" valign="top">( </td>
<td class="md" nowrap valign="top">HCRYPTPROV </td>
<td class="mdname" nowrap> <em>provRSA</em>, </td>
</tr>
<tr>
<td class="md" nowrap align="right"></td>
<td class="md"></td>
<td class="md" nowrap>HCRYPTPROV </td>
<td class="mdname" nowrap> <em>provDSS</em></td>
</tr>
<tr>
<td class="md"></td>
<td class="md">) </td>
<td class="md" colspan="2"></td>
</tr>
</table>
</td>
</tr>
</table>
<table cellspacing="5" cellpadding="0" border="0">
<tr>
<td>
</td>
<td>
<p>
Constructor for X509 objects.
<p>
The windows constructor requires RSA or DSS crypto providers, depending on the key type within the cert.<p>
<dl compact><dt><b>Parameters:</b></dt><dd>
<table border="0" cellspacing="2" cellpadding="0">
<tr><td valign="top"></td><td valign="top"><em>provRSA</em> </td><td>A handle to the PROV_RSA_FULL type provider that the interface should use when importing keys and manipulating certs </td></tr>
<tr><td valign="top"></td><td valign="top"><em>provDSS</em> </td><td>A handle to the PROV_DSS type provider that the interface should use when importing keys and manipulating certs </td></tr>
</table>
</dl>
</td>
</tr>
</table>
<a class="anchor" name="z144_1" doxytag="WinCAPICryptoX509::WinCAPICryptoX509"></a><p>
<table class="mdTable" cellpadding="2" cellspacing="0">
<tr>
<td class="mdRow">
<table cellpadding="0" cellspacing="0" border="0">
<tr>
<td class="md" nowrap valign="top">WinCAPICryptoX509::WinCAPICryptoX509 </td>
<td class="md" valign="top">( </td>
<td class="md" nowrap valign="top">PCCERT_CONTEXT </td>
<td class="mdname" nowrap> <em>pCertContext</em>, </td>
</tr>
<tr>
<td class="md" nowrap align="right"></td>
<td class="md"></td>
<td class="md" nowrap>HCRYPTPROV </td>
<td class="mdname" nowrap> <em>provRSA</em>, </td>
</tr>
<tr>
<td class="md" nowrap align="right"></td>
<td class="md"></td>
<td class="md" nowrap>HCRYPTPROV </td>
<td class="mdname" nowrap> <em>provDSS</em></td>
</tr>
<tr>
<td class="md"></td>
<td class="md">) </td>
<td class="md" colspan="2"></td>
</tr>
</table>
</td>
</tr>
</table>
<table cellspacing="5" cellpadding="0" border="0">
<tr>
<td>
</td>
<td>
<p>
Constructor for X509 objects.
<p>
<dl compact><dt><b>Parameters:</b></dt><dd>
<table border="0" cellspacing="2" cellpadding="0">
<tr><td valign="top"></td><td valign="top"><em>pCertContext</em> </td><td>A certificate handle </td></tr>
<tr><td valign="top"></td><td valign="top"><em>provRSA</em> </td><td>A handle to the PROV_RSA_FULL type provider that the interface should use when importing keys and manipulating certs </td></tr>
<tr><td valign="top"></td><td valign="top"><em>provDSS</em> </td><td>A handle to the PROV_DSS type provider that the interface should use when importing keys and manipulating certs </td></tr>
</table>
</dl>
</td>
</tr>
</table>
<a class="anchor" name="z144_2" doxytag="WinCAPICryptoX509::~WinCAPICryptoX509"></a><p>
<table class="mdTable" cellpadding="2" cellspacing="0">
<tr>
<td class="mdRow">
<table cellpadding="0" cellspacing="0" border="0">
<tr>
<td class="md" nowrap valign="top">virtual WinCAPICryptoX509::~WinCAPICryptoX509 </td>
<td class="md" valign="top">( </td>
<td class="mdname1" valign="top" nowrap> </td>
<td class="md" valign="top"> ) </td>
<td class="md" nowrap><code> [virtual]</code></td>
</tr>
</table>
</td>
</tr>
</table>
<table cellspacing="5" cellpadding="0" border="0">
<tr>
<td>
</td>
<td>
<p>
</td>
</tr>
</table>
<hr><h2>Member Function Documentation</h2>
<a class="anchor" name="z145_1" doxytag="WinCAPICryptoX509::clonePublicKey"></a><p>
<table class="mdTable" cellpadding="2" cellspacing="0">
<tr>
<td class="mdRow">
<table cellpadding="0" cellspacing="0" border="0">
<tr>
<td class="md" nowrap valign="top">virtual <a class="el" href="classXSECCryptoKey.html">XSECCryptoKey</a>* WinCAPICryptoX509::clonePublicKey </td>
<td class="md" valign="top">( </td>
<td class="mdname1" valign="top" nowrap> </td>
<td class="md" valign="top"> ) </td>
<td class="md" nowrap><code> [virtual]</code></td>
</tr>
</table>
</td>
</tr>
</table>
<table cellspacing="5" cellpadding="0" border="0">
<tr>
<td>
</td>
<td>
<p>
Get a copy of the public key.
<p>
Extracts the public key from the certificate and returns the appropriate WinCAPICryrptoKey (DSA or RSA) object
<p>
Implements <a class="el" href="classXSECCryptoX509.html#z179_1">XSECCryptoX509</a>. </td>
</tr>
</table>
<a class="anchor" name="z146_1" doxytag="WinCAPICryptoX509::getDEREncodingSB"></a><p>
<table class="mdTable" cellpadding="2" cellspacing="0">
<tr>
<td class="mdRow">
<table cellpadding="0" cellspacing="0" border="0">
<tr>
<td class="md" nowrap valign="top">virtual <a class="el" href="classsafeBuffer.html">safeBuffer</a>& WinCAPICryptoX509::getDEREncodingSB </td>
<td class="md" valign="top">( </td>
<td class="md" nowrap valign="top">void </td>
<td class="mdname1" valign="top" nowrap> </td>
<td class="md" valign="top"> ) </td>
<td class="md" nowrap><code> [inline, virtual]</code></td>
</tr>
</table>
</td>
</tr>
</table>
<table cellspacing="5" cellpadding="0" border="0">
<tr>
<td>
</td>
<td>
<p>
Get a Base64 DER encoded copy of the certificate.
<p>
<dl compact><dt><b>Returns:</b></dt><dd>A <a class="el" href="classsafeBuffer.html">safeBuffer</a> containing the DER encoded certificate </dd></dl>
<p>
Implements <a class="el" href="classXSECCryptoX509.html#z180_2">XSECCryptoX509</a>. </td>
</tr>
</table>
<a class="anchor" name="z145_2" doxytag="WinCAPICryptoX509::getProviderName"></a><p>
<table class="mdTable" cellpadding="2" cellspacing="0">
<tr>
<td class="mdRow">
<table cellpadding="0" cellspacing="0" border="0">
<tr>
<td class="md" nowrap valign="top">virtual const XMLCh* WinCAPICryptoX509::getProviderName </td>
<td class="md" valign="top">( </td>
<td class="mdname1" valign="top" nowrap> </td>
<td class="md" valign="top"> ) </td>
<td class="md" nowrap><code> [virtual]</code></td>
</tr>
</table>
</td>
</tr>
</table>
<table cellspacing="5" cellpadding="0" border="0">
<tr>
<td>
</td>
<td>
<p>
Returns a string that identifies the crypto owner of this library.
<p>
<p>
Implements <a class="el" href="classXSECCryptoX509.html#z179_2">XSECCryptoX509</a>. </td>
</tr>
</table>
<a class="anchor" name="z145_0" doxytag="WinCAPICryptoX509::getPublicKeyType"></a><p>
<table class="mdTable" cellpadding="2" cellspacing="0">
<tr>
<td class="mdRow">
<table cellpadding="0" cellspacing="0" border="0">
<tr>
<td class="md" nowrap valign="top">virtual <a class="el" href="classXSECCryptoKey.html#w9">XSECCryptoKey::KeyType</a> WinCAPICryptoX509::getPublicKeyType </td>
<td class="md" valign="top">( </td>
<td class="mdname1" valign="top" nowrap> </td>
<td class="md" valign="top"> ) </td>
<td class="md" nowrap><code> [virtual]</code></td>
</tr>
</table>
</td>
</tr>
</table>
<table cellspacing="5" cellpadding="0" border="0">
<tr>
<td>
</td>
<td>
<p>
Return the type of the key stored in the certificate.
<p>
Will extract the key from the certificate to return the appropriate type
<p>
Implements <a class="el" href="classXSECCryptoX509.html#z179_0">XSECCryptoX509</a>. </td>
</tr>
</table>
<a class="anchor" name="z146_0" doxytag="WinCAPICryptoX509::loadX509Base64Bin"></a><p>
<table class="mdTable" cellpadding="2" cellspacing="0">
<tr>
<td class="mdRow">
<table cellpadding="0" cellspacing="0" border="0">
<tr>
<td class="md" nowrap valign="top">virtual void WinCAPICryptoX509::loadX509Base64Bin </td>
<td class="md" valign="top">( </td>
<td class="md" nowrap valign="top">const char * </td>
<td class="mdname" nowrap> <em>buf</em>, </td>
</tr>
<tr>
<td class="md" nowrap align="right"></td>
<td class="md"></td>
<td class="md" nowrap>unsigned int </td>
<td class="mdname" nowrap> <em>len</em></td>
</tr>
<tr>
<td class="md"></td>
<td class="md">) </td>
<td class="md" colspan="2"><code> [virtual]</code></td>
</tr>
</table>
</td>
</tr>
</table>
<table cellspacing="5" cellpadding="0" border="0">
<tr>
<td>
</td>
<td>
<p>
Load a certificate into the object.
<p>
Take a base64 DER encoded certificate and load.<p>
<dl compact><dt><b>Parameters:</b></dt><dd>
<table border="0" cellspacing="2" cellpadding="0">
<tr><td valign="top"></td><td valign="top"><em>buf</em> </td><td>A buffer containing the Base64 encoded certificate </td></tr>
<tr><td valign="top"></td><td valign="top"><em>len</em> </td><td>The number of bytes of data in the certificate. </td></tr>
</table>
</dl>
<p>
Implements <a class="el" href="classXSECCryptoX509.html#z180_0">XSECCryptoX509</a>. </td>
</tr>
</table>
<hr>The documentation for this class was generated from the following file:<ul>
<li><a class="el" href="WinCAPICryptoX509_8hpp-source.html">WinCAPICryptoX509.hpp</a></ul>
<hr size="1"><address style="align: right;"><small>Generated on Sun Jul 3 17:43:52 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>
|