Jean-Paul Calderone | 897bc25 | 2008-02-18 20:50:23 -0500 | [diff] [blame^] | 1 | <!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN"> |
| 2 | <html> |
| 3 | <head> |
| 4 | <title>3.1.9 NetscapeSPKI objects </title> |
| 5 | <META NAME="description" CONTENT="3.1.9 NetscapeSPKI objects "> |
| 6 | <META NAME="keywords" CONTENT="pyOpenSSL"> |
| 7 | <META NAME="resource-type" CONTENT="document"> |
| 8 | <META NAME="distribution" CONTENT="global"> |
| 9 | <link rel="STYLESHEET" href="pyOpenSSL.css"> |
| 10 | <LINK REL="previous" href="openssl-509ext.html"> |
| 11 | <LINK REL="up" href="openssl-crypto.html"> |
| 12 | <LINK REL="next" href="openssl-rand.html"> |
| 13 | </head> |
| 14 | <body> |
| 15 | <DIV CLASS="navigation"> |
| 16 | <table align="center" width="100%" cellpadding="0" cellspacing="2"> |
| 17 | <tr> |
| 18 | <td><A href="openssl-509ext.html"><img src="previous.gif" |
| 19 | border="0" height="32" |
| 20 | alt="Previous Page" width="32"></A></td> |
| 21 | <td><A href="openssl-crypto.html"><img src="up.gif" |
| 22 | border="0" height="32" |
| 23 | alt="Up One Level" width="32"></A></td> |
| 24 | <td><A href="openssl-rand.html"><img src="next.gif" |
| 25 | border="0" height="32" |
| 26 | alt="Next Page" width="32"></A></td> |
| 27 | <td align="center" width="100%">Python OpenSSL Manual</td> |
| 28 | <td><A href="contents.html"><img src="contents.gif" |
| 29 | border="0" height="32" |
| 30 | alt="Contents" width="32"></A></td> |
| 31 | <td><img src="blank.gif" |
| 32 | border="0" height="32" |
| 33 | alt="" width="32"></td> |
| 34 | <td><img src="blank.gif" |
| 35 | border="0" height="32" |
| 36 | alt="" width="32"></td> |
| 37 | </tr></table> |
| 38 | <b class="navlabel">Previous:</b> <a class="sectref" href="openssl-509ext.html">3.1.8 X509Extension objects</A> |
| 39 | <b class="navlabel">Up:</b> <a class="sectref" href="openssl-crypto.html">3.1 crypto </A> |
| 40 | <b class="navlabel">Next:</b> <a class="sectref" href="openssl-rand.html">3.2 rand </A> |
| 41 | <br><hr> |
| 42 | </DIV> |
| 43 | <!--End of Navigation Panel--> |
| 44 | |
| 45 | <H3><A NAME="SECTION000419000000000000000"> </A> |
| 46 | <BR> |
| 47 | 3.1.9 NetscapeSPKI objects |
| 48 | </H3> |
| 49 | <P> |
| 50 | <EM><EM><EM>NetscapeSPKI objects have the following methods: |
| 51 | </EM></EM></EM> |
| 52 | <P> |
| 53 | <dl><dt><b><a name='l2h-76'><tt class='method'>b64_encode</tt></a></b>() |
| 54 | <dd> |
| 55 | Return a base64-encoded string representation of the object. |
| 56 | </dl> |
| 57 | <P> |
| 58 | <dl><dt><b><a name='l2h-77'><tt class='method'>get_pubkey</tt></a></b>() |
| 59 | <dd> |
| 60 | Return the public key of object. |
| 61 | </dl> |
| 62 | <P> |
| 63 | <dl><dt><b><a name='l2h-78'><tt class='method'>set_pubkey</tt></a></b>(<var>key</var>) |
| 64 | <dd> |
| 65 | Set the public key of the object to <var>key</var>. |
| 66 | </dl> |
| 67 | <P> |
| 68 | <dl><dt><b><a name='l2h-79'><tt class='method'>sign</tt></a></b>(<var>key, digest_name</var>) |
| 69 | <dd> |
| 70 | Sign the NetscapeSPKI object using the given <var>key</var> and <var>digest_name</var>. |
| 71 | </dl> |
| 72 | <P> |
| 73 | <dl><dt><b><a name='l2h-80'><tt class='method'>verify</tt></a></b>(<var>key</var>) |
| 74 | <dd> |
| 75 | Verify the NetscapeSPKI object using the given <var>key</var>. |
| 76 | </dl> |
| 77 | <P> |
| 78 | |
| 79 | <DIV CLASS="navigation"> |
| 80 | <p><hr> |
| 81 | <table align="center" width="100%" cellpadding="0" cellspacing="2"> |
| 82 | <tr> |
| 83 | <td><A href="openssl-509ext.html"><img src="previous.gif" |
| 84 | border="0" height="32" |
| 85 | alt="Previous Page" width="32"></A></td> |
| 86 | <td><A href="openssl-crypto.html"><img src="up.gif" |
| 87 | border="0" height="32" |
| 88 | alt="Up One Level" width="32"></A></td> |
| 89 | <td><A href="openssl-rand.html"><img src="next.gif" |
| 90 | border="0" height="32" |
| 91 | alt="Next Page" width="32"></A></td> |
| 92 | <td align="center" width="100%">Python OpenSSL Manual</td> |
| 93 | <td><A href="contents.html"><img src="contents.gif" |
| 94 | border="0" height="32" |
| 95 | alt="Contents" width="32"></A></td> |
| 96 | <td><img src="blank.gif" |
| 97 | border="0" height="32" |
| 98 | alt="" width="32"></td> |
| 99 | <td><img src="blank.gif" |
| 100 | border="0" height="32" |
| 101 | alt="" width="32"></td> |
| 102 | </tr></table> |
| 103 | <b class="navlabel">Previous:</b> <a class="sectref" href="openssl-509ext.html">3.1.8 X509Extension objects</A> |
| 104 | <b class="navlabel">Up:</b> <a class="sectref" href="openssl-crypto.html">3.1 crypto </A> |
| 105 | <b class="navlabel">Next:</b> <a class="sectref" href="openssl-rand.html">3.2 rand </A> |
| 106 | <hr> |
| 107 | <span class="release-info">Release 0.6.</span> |
| 108 | </DIV> |
| 109 | <!--End of Navigation Panel--> |
| 110 | |
| 111 | </BODY> |
| 112 | </HTML> |