~gary/python-openid/python-openid-2.2.1-patched

« back to all changes in this revision

Viewing changes to doc/openid.association.Association-class.html

  • Committer: Launchpad Patch Queue Manager
  • Date: 2007-11-30 02:46:28 UTC
  • mfrom: (1.1.1 pyopenid-2.0)
  • Revision ID: launchpad@pqm.canonical.com-20071130024628-qktwsew3383iawmq
[rs=SteveA] upgrade to python-openid-2.0.1

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
 
<?xml version="1.0" encoding="ascii"?>
 
1
<?xml version="1.0" encoding="iso-8859-1"?>
2
2
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
3
3
          "DTD/xhtml1-transitional.dtd">
4
4
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
5
5
<head>
6
6
  <title>openid.association.Association</title>
7
 
  <link rel="stylesheet" href="epydoc.css" type="text/css" />
8
 
  <script type="text/javascript" src="epydoc.js"></script>
 
7
  <link rel="stylesheet" href="epydoc.css" type="text/css"></link>
9
8
</head>
10
 
 
11
9
<body bgcolor="white" text="black" link="blue" vlink="#204080"
12
10
      alink="#204080">
13
 
<!-- ==================== NAVIGATION BAR ==================== -->
14
 
<table class="navbar" border="0" width="100%" cellpadding="0"
15
 
       bgcolor="#a0c0ff" cellspacing="0">
16
 
  <tr valign="middle">
17
 
  <!-- Home link -->
18
 
      <th>&nbsp;&nbsp;&nbsp;<a
19
 
        href="openid-module.html">Home</a>&nbsp;&nbsp;&nbsp;</th>
20
 
 
21
 
  <!-- Tree link -->
22
 
      <th>&nbsp;&nbsp;&nbsp;<a
23
 
        href="module-tree.html">Trees</a>&nbsp;&nbsp;&nbsp;</th>
24
 
 
25
 
  <!-- Index link -->
26
 
      <th>&nbsp;&nbsp;&nbsp;<a
27
 
        href="identifier-index.html">Indices</a>&nbsp;&nbsp;&nbsp;</th>
28
 
 
29
 
  <!-- Help link -->
30
 
      <th>&nbsp;&nbsp;&nbsp;<a
31
 
        href="help.html">Help</a>&nbsp;&nbsp;&nbsp;</th>
32
 
 
33
 
  <!-- Project homepage -->
34
 
      <th class="navbar" align="right" width="100%">
35
 
        <table border="0" cellpadding="0" cellspacing="0">
36
 
          <tr><th class="navbar" align="center"
37
 
            ><a class="navbar" target="_top" href="http://www.openidenabled.com/">Python-OpenID</a></th>
38
 
          </tr></table></th>
 
11
 
 
12
<!-- =========== START OF NAVBAR =========== -->
 
13
<table class="navbar" border="0" width="100%" cellpadding="0" bgcolor="#a0c0ff" cellspacing="0">
 
14
  <tr valign="center">
 
15
    <th class="navbar">&nbsp;&nbsp;&nbsp;<a class="navbar" href="openid-module.html">Home</a>&nbsp;&nbsp;&nbsp;</th>
 
16
    <th class="navbar">&nbsp;&nbsp;&nbsp;<a class="navbar" href="trees.html">Trees</a>&nbsp;&nbsp;&nbsp;</th>
 
17
    <th class="navbar">&nbsp;&nbsp;&nbsp;<a class="navbar" href="indices.html">Index</a>&nbsp;&nbsp;&nbsp;</th>
 
18
    <th class="navbar">&nbsp;&nbsp;&nbsp;<a class="navbar" href="help.html">Help</a>&nbsp;&nbsp;&nbsp;</th>
 
19
    <th class="navbar" align="right" width="100%">
 
20
      <table border="0" cellpadding="0" cellspacing="0">
 
21
      <tr><th class="navbar" align="center">
 
22
        <p class="nomargin">
 
23
          <a class="navbar" target="_top" href="http://www.openidenabled.com/">Python-OpenID</a>
 
24
      </p></th></tr></table>
 
25
    </th>
39
26
  </tr>
40
27
</table>
41
28
<table width="100%" cellpadding="0" cellspacing="0">
42
29
  <tr valign="top">
43
30
    <td width="100%">
44
 
      <span class="breadcrumbs">
 
31
      <font size="-1"><b class="breadcrumbs">
45
32
        <a href="openid-module.html">Package&nbsp;openid</a> ::
46
33
        <a href="openid.association-module.html">Module&nbsp;association</a> ::
47
34
        Class&nbsp;Association
48
 
      </span>
49
 
    </td>
50
 
    <td>
51
 
      <table cellpadding="0" cellspacing="0">
52
 
        <!-- hide/show private -->
53
 
        <tr><td align="right"><span class="options"
54
 
            >[<a href="frames.html" target="_top">frames</a
55
 
            >]&nbsp;|&nbsp;<a href="openid.association.Association-class.html"
56
 
            target="_top">no&nbsp;frames</a>]</span></td></tr>
57
 
      </table>
58
 
    </td>
59
 
  </tr>
60
 
</table>
61
 
<!-- ==================== CLASS DESCRIPTION ==================== -->
62
 
<h1 class="epydoc">Class Association</h1><span class="codelink"><a href="openid.association-pysrc.html#Association">source&nbsp;code</a></span><br /><br />
 
35
      </b></font></br>
 
36
    </td>
 
37
    <td><table cellpadding="0" cellspacing="0">
 
38
      <tr><td align="right"><font size="-2">[<a href="frames.html"target="_top">frames</a>&nbsp;|&nbsp;<a href="openid.association.Association-class.html" target="_top">no&nbsp;frames</a>]</font></td></tr>
 
39
    </table></td>
 
40
</tr></table>
 
41
 
 
42
<!-- =========== START OF CLASS DESCRIPTION =========== -->
 
43
<h2 class="class">Type Association</h2>
 
44
 
63
45
<pre class="base-tree">
64
 
object --+
 
46
<a href="__builtin__.object-class.html"><code>object</code></a> --+
65
47
         |
66
 
        <strong class="uidshort">Association</strong>
67
 
</pre>
68
 
 
69
 
<hr />
70
 
<p>This class represents an association between a server and a consumer.
71
 
  In general, users of this library will never see instances of this 
72
 
  object.  The only exception is if you implement a custom <code><a 
73
 
  href="openid.store.interface.OpenIDStore-class.html" 
74
 
  class="link">OpenIDStore</a></code>.</p>
75
 
  If you do implement such a store, it will need to store the values of 
76
 
  the <code><a href="openid.association.Association-class.html#handle" 
77
 
  class="link">handle</a></code>, <code><a 
78
 
  href="openid.association.Association-class.html#secret" 
79
 
  class="link">secret</a></code>, <code><a 
80
 
  href="openid.association.Association-class.html#issued" 
81
 
  class="link">issued</a></code>, <code><a 
82
 
  href="openid.association.Association-class.html#lifetime" 
83
 
  class="link">lifetime</a></code>, and <code><a 
84
 
  href="openid.association.Association-class.html#assoc_type" 
85
 
  class="link">assoc_type</a></code> instance variables.<br /><br />
86
 
 
87
 
<!-- ==================== INSTANCE METHODS ==================== -->
88
 
<a name="section-InstanceMethods"></a>
89
 
<table class="summary" border="1" cellpadding="3"
90
 
       cellspacing="0" width="100%" bgcolor="white">
91
 
<tr bgcolor="#70b0f0" class="table-header">
92
 
  <td colspan="2" class="table-header">
93
 
    <table border="0" cellpadding="0" cellspacing="0" width="100%">
94
 
      <tr valign="top">
95
 
        <td align="left"><span class="table-header">Instance Methods</span></td>
96
 
        <td align="right" valign="top"
97
 
         ><span class="options">[<a href="#section-InstanceMethods"
98
 
         class="privatelink" onclick="toggle_private();"
99
 
         >hide private</a>]</span></td>
100
 
      </tr>
101
 
    </table>
102
 
  </td>
103
 
</tr>
104
 
<tr>
105
 
  <td width="15%" align="right" valign="top" class="summary">
106
 
    <span class="summary-type">&nbsp;</span>
107
 
  </td><td class="summary">
108
 
    <span class="summary-sig"><a href="openid.association.Association-class.html#__init__" class="summary-sig-name">__init__</a>(<span class="summary-sig-arg">self</span>,
109
 
        <span class="summary-sig-arg">handle</span>,
110
 
        <span class="summary-sig-arg">secret</span>,
111
 
        <span class="summary-sig-arg">issued</span>,
112
 
        <span class="summary-sig-arg">lifetime</span>,
113
 
        <span class="summary-sig-arg">assoc_type</span>)</span><br />
114
 
      This is the standard constructor for creating an association.
115
 
  </td>
116
 
</tr>
117
 
<tr>
118
 
  <td width="15%" align="right" valign="top" class="summary">
119
 
    <span class="summary-type"><code>int</code></span>
120
 
  </td><td class="summary">
121
 
    <span class="summary-sig"><a href="openid.association.Association-class.html#getExpiresIn" class="summary-sig-name">getExpiresIn</a>(<span class="summary-sig-arg">self</span>,
122
 
        <span class="summary-sig-arg">now</span>=<span class="summary-sig-default">None</span>)</span><br />
123
 
      This returns the number of seconds this association is still valid
124
 
      for, or <code>0</code> if the association is no longer valid.
125
 
  </td>
126
 
</tr>
127
 
<tr>
128
 
  <td width="15%" align="right" valign="top" class="summary">
129
 
    <span class="summary-type"><code>bool</code></span>
130
 
  </td><td class="summary">
131
 
    <span class="summary-sig"><a href="openid.association.Association-class.html#__eq__" class="summary-sig-name">__eq__</a>(<span class="summary-sig-arg">self</span>,
132
 
        <span class="summary-sig-arg">other</span>)</span><br />
133
 
      This checks to see if two <code><a 
134
 
      href="openid.association.Association-class.html" 
135
 
      class="link">Association</a></code> instances represent the same 
136
 
      association.
137
 
  </td>
138
 
</tr>
139
 
<tr>
140
 
  <td width="15%" align="right" valign="top" class="summary">
141
 
    <span class="summary-type"><code>bool</code></span>
142
 
  </td><td class="summary">
143
 
    <span class="summary-sig"><a href="openid.association.Association-class.html#__ne__" class="summary-sig-name">__ne__</a>(<span class="summary-sig-arg">self</span>,
144
 
        <span class="summary-sig-arg">other</span>)</span><br />
145
 
      This checks to see if two <code><a 
146
 
      href="openid.association.Association-class.html" 
147
 
      class="link">Association</a></code> instances represent different 
148
 
      associations.
149
 
  </td>
150
 
</tr>
151
 
<tr>
152
 
  <td width="15%" align="right" valign="top" class="summary">
153
 
    <span class="summary-type">str</span>
154
 
  </td><td class="summary">
155
 
    <span class="summary-sig"><a href="openid.association.Association-class.html#serialize" class="summary-sig-name">serialize</a>(<span class="summary-sig-arg">self</span>)</span><br />
156
 
      Convert an association to KV form.
157
 
  </td>
158
 
</tr>
159
 
<tr>
160
 
  <td width="15%" align="right" valign="top" class="summary">
161
 
    <span class="summary-type">str</span>
162
 
  </td><td class="summary">
163
 
    <span class="summary-sig"><a href="openid.association.Association-class.html#sign" class="summary-sig-name">sign</a>(<span class="summary-sig-arg">self</span>,
164
 
        <span class="summary-sig-arg">pairs</span>)</span><br />
165
 
      Generate a signature for a sequence of (key, value) pairs
166
 
  </td>
167
 
</tr>
168
 
<tr>
169
 
  <td width="15%" align="right" valign="top" class="summary">
170
 
    <span class="summary-type">str</span>
171
 
  </td><td class="summary">
172
 
    <span class="summary-sig"><a href="openid.association.Association-class.html#signDict" class="summary-sig-name">signDict</a>(<span class="summary-sig-arg">self</span>,
173
 
        <span class="summary-sig-arg">fields</span>,
174
 
        <span class="summary-sig-arg">data</span>,
175
 
        <span class="summary-sig-arg">prefix</span>=<span class="summary-sig-default">'openid.'</span>)</span><br />
176
 
      Generate a signature for some fields in a dictionary
177
 
  </td>
178
 
</tr>
179
 
<tr>
180
 
  <td width="15%" align="right" valign="top" class="summary">
181
 
    <span class="summary-type">&nbsp;</span>
182
 
  </td><td class="summary">
183
 
    <span class="summary-sig"><a href="openid.association.Association-class.html#addSignature" class="summary-sig-name">addSignature</a>(<span class="summary-sig-arg">self</span>,
184
 
        <span class="summary-sig-arg">fields</span>,
185
 
        <span class="summary-sig-arg">data</span>,
186
 
        <span class="summary-sig-arg">prefix</span>=<span class="summary-sig-default">'openid.'</span>)</span>
187
 
  </td>
188
 
</tr>
189
 
<tr>
190
 
  <td width="15%" align="right" valign="top" class="summary">
191
 
    <span class="summary-type">&nbsp;</span>
192
 
  </td><td class="summary">
193
 
    <span class="summary-sig"><a href="openid.association.Association-class.html#checkSignature" class="summary-sig-name">checkSignature</a>(<span class="summary-sig-arg">self</span>,
194
 
        <span class="summary-sig-arg">data</span>,
195
 
        <span class="summary-sig-arg">prefix</span>=<span class="summary-sig-default">'openid.'</span>)</span>
196
 
  </td>
197
 
</tr>
198
 
  <tr>
199
 
    <td colspan="2" class="summary">
200
 
    <p class="indent-wrapped-lines"><b>Inherited from <code>object</code></b>:
201
 
      <code>__delattr__</code>,
202
 
      <code>__getattribute__</code>,
203
 
      <code>__hash__</code>,
204
 
      <code>__new__</code>,
205
 
      <code>__reduce__</code>,
206
 
      <code>__reduce_ex__</code>,
207
 
      <code>__repr__</code>,
208
 
      <code>__setattr__</code>,
209
 
      <code>__str__</code>
210
 
      </p>
211
 
    </td>
212
 
  </tr>
213
 
</table>
214
 
 
215
 
<br />
216
 
<!-- ==================== CLASS METHODS ==================== -->
217
 
<a name="section-ClassMethods"></a>
218
 
<table class="summary" border="1" cellpadding="3"
219
 
       cellspacing="0" width="100%" bgcolor="white">
220
 
<tr bgcolor="#70b0f0" class="table-header">
221
 
  <td colspan="2" class="table-header">
222
 
    <table border="0" cellpadding="0" cellspacing="0" width="100%">
223
 
      <tr valign="top">
224
 
        <td align="left"><span class="table-header">Class Methods</span></td>
225
 
        <td align="right" valign="top"
226
 
         ><span class="options">[<a href="#section-ClassMethods"
227
 
         class="privatelink" onclick="toggle_private();"
228
 
         >hide private</a>]</span></td>
229
 
      </tr>
230
 
    </table>
231
 
  </td>
232
 
</tr>
233
 
<tr>
234
 
  <td width="15%" align="right" valign="top" class="summary">
235
 
    <span class="summary-type">&nbsp;</span>
236
 
  </td><td class="summary">
237
 
    <span class="summary-sig"><a href="openid.association.Association-class.html#fromExpiresIn" class="summary-sig-name">fromExpiresIn</a>(<span class="summary-sig-arg">cls</span>,
238
 
        <span class="summary-sig-arg">expires_in</span>,
239
 
        <span class="summary-sig-arg">handle</span>,
240
 
        <span class="summary-sig-arg">secret</span>,
241
 
        <span class="summary-sig-arg">assoc_type</span>)</span><br />
242
 
      This is an alternate constructor used by the OpenID consumer 
243
 
      library to create associations.
244
 
  </td>
245
 
</tr>
246
 
<tr>
247
 
  <td width="15%" align="right" valign="top" class="summary">
248
 
    <span class="summary-type">&nbsp;</span>
249
 
  </td><td class="summary">
250
 
    <span class="summary-sig"><a href="openid.association.Association-class.html#deserialize" class="summary-sig-name">deserialize</a>(<span class="summary-sig-arg">cls</span>,
251
 
        <span class="summary-sig-arg">assoc_s</span>)</span><br />
252
 
      Parse an association as stored by serialize().
253
 
  </td>
254
 
</tr>
255
 
</table>
256
 
 
257
 
<br />
258
 
<!-- ==================== CLASS VARIABLES ==================== -->
259
 
<a name="section-ClassVariables"></a>
260
 
<table class="summary" border="1" cellpadding="3"
261
 
       cellspacing="0" width="100%" bgcolor="white">
262
 
<tr bgcolor="#70b0f0" class="table-header">
263
 
  <td colspan="2" class="table-header">
264
 
    <table border="0" cellpadding="0" cellspacing="0" width="100%">
265
 
      <tr valign="top">
266
 
        <td align="left"><span class="table-header">Class Variables</span></td>
267
 
        <td align="right" valign="top"
268
 
         ><span class="options">[<a href="#section-ClassVariables"
269
 
         class="privatelink" onclick="toggle_private();"
270
 
         >hide private</a>]</span></td>
271
 
      </tr>
272
 
    </table>
273
 
  </td>
274
 
</tr>
275
 
<tr>
276
 
  <td width="15%" align="right" valign="top" class="summary">
277
 
    <span class="summary-type">&nbsp;</span>
278
 
  </td><td class="summary">
279
 
    <a href="openid.association.Association-class.html#SIG_LENGTH">SIG_LENGTH</a> = <code title="20">20</code>
280
 
  </td>
281
 
</tr>
282
 
<tr>
283
 
  <td width="15%" align="right" valign="top" class="summary">
284
 
    <span class="summary-type">&nbsp;</span>
285
 
  </td><td class="summary">
286
 
    <a href="openid.association.Association-class.html#assoc_keys">assoc_keys</a> = <code title="['version', 'handle', 'secret', 'issued', 'lifetime', 'assoc_type']">['version', 'handle', 'secret', 'issued', 'lifetime'...</code>
287
 
  </td>
288
 
</tr>
289
 
</table>
290
 
 
291
 
<br />
292
 
<!-- ==================== INSTANCE VARIABLES ==================== -->
293
 
<a name="section-InstanceVariables"></a>
294
 
<table class="summary" border="1" cellpadding="3"
295
 
       cellspacing="0" width="100%" bgcolor="white">
296
 
<tr bgcolor="#70b0f0" class="table-header">
297
 
  <td colspan="2" class="table-header">
298
 
    <table border="0" cellpadding="0" cellspacing="0" width="100%">
299
 
      <tr valign="top">
300
 
        <td align="left"><span class="table-header">Instance Variables</span></td>
301
 
        <td align="right" valign="top"
302
 
         ><span class="options">[<a href="#section-InstanceVariables"
303
 
         class="privatelink" onclick="toggle_private();"
304
 
         >hide private</a>]</span></td>
305
 
      </tr>
306
 
    </table>
307
 
  </td>
308
 
</tr>
309
 
<tr>
310
 
  <td width="15%" align="right" valign="top" class="summary">
311
 
    <span class="summary-type"><code>str</code></span>
312
 
  </td><td class="summary">
313
 
    <a href="openid.association.Association-class.html#handle">handle</a><br />
314
 
      This is the handle the server gave this association.
315
 
  </td>
316
 
</tr>
317
 
<tr>
318
 
  <td width="15%" align="right" valign="top" class="summary">
319
 
    <span class="summary-type"><code>str</code></span>
320
 
  </td><td class="summary">
321
 
    <a href="openid.association.Association-class.html#secret">secret</a><br />
322
 
      This is the shared secret the server generated for this 
323
 
      association.
324
 
  </td>
325
 
</tr>
326
 
<tr>
327
 
  <td width="15%" align="right" valign="top" class="summary">
328
 
    <span class="summary-type"><code>int</code></span>
329
 
  </td><td class="summary">
330
 
    <a href="openid.association.Association-class.html#issued">issued</a><br />
331
 
      This is the time this association was issued, in seconds since 
332
 
      00:00 GMT, January 1, 1970.
333
 
  </td>
334
 
</tr>
335
 
<tr>
336
 
  <td width="15%" align="right" valign="top" class="summary">
337
 
    <span class="summary-type"><code>int</code></span>
338
 
  </td><td class="summary">
339
 
    <a href="openid.association.Association-class.html#lifetime">lifetime</a><br />
340
 
      This is the amount of time this association is good for, measured 
341
 
      in seconds since the association was issued.
342
 
  </td>
343
 
</tr>
344
 
<tr>
345
 
  <td width="15%" align="right" valign="top" class="summary">
346
 
    <span class="summary-type"><code>str</code></span>
347
 
  </td><td class="summary">
348
 
    <a href="openid.association.Association-class.html#assoc_type">assoc_type</a><br />
349
 
      This is the type of association this instance represents.
350
 
  </td>
351
 
</tr>
352
 
</table>
353
 
 
354
 
<br />
355
 
<!-- ==================== PROPERTIES ==================== -->
356
 
<a name="section-Properties"></a>
357
 
<table class="summary" border="1" cellpadding="3"
358
 
       cellspacing="0" width="100%" bgcolor="white">
359
 
<tr bgcolor="#70b0f0" class="table-header">
360
 
  <td colspan="2" class="table-header">
361
 
    <table border="0" cellpadding="0" cellspacing="0" width="100%">
362
 
      <tr valign="top">
363
 
        <td align="left"><span class="table-header">Properties</span></td>
364
 
        <td align="right" valign="top"
365
 
         ><span class="options">[<a href="#section-Properties"
366
 
         class="privatelink" onclick="toggle_private();"
367
 
         >hide private</a>]</span></td>
368
 
      </tr>
369
 
    </table>
370
 
  </td>
371
 
</tr>
372
 
<tr>
373
 
  <td width="15%" align="right" valign="top" class="summary">
374
 
    <span class="summary-type">&nbsp;</span>
375
 
  </td><td class="summary">
376
 
    <a href="openid.association.Association-class.html#expiresIn">expiresIn</a>
377
 
  </td>
378
 
</tr>
379
 
  <tr>
380
 
    <td colspan="2" class="summary">
381
 
    <p class="indent-wrapped-lines"><b>Inherited from <code>object</code></b>:
382
 
      <code>__class__</code>
383
 
      </p>
384
 
    </td>
385
 
  </tr>
386
 
</table>
387
 
 
388
 
<br />
389
 
<!-- ==================== METHOD DETAILS ==================== -->
390
 
<a name="section-MethodDetails"></a>
391
 
<table class="summary" border="1" cellpadding="3"
392
 
       cellspacing="0" width="100%" bgcolor="white">
393
 
<tr bgcolor="#70b0f0" class="table-header">
394
 
  <td colspan="2" class="table-header">
395
 
    <table border="0" cellpadding="0" cellspacing="0" width="100%">
396
 
      <tr valign="top">
397
 
        <td align="left"><span class="table-header">Method Details</span></td>
398
 
        <td align="right" valign="top"
399
 
         ><span class="options">[<a href="#section-MethodDetails"
400
 
         class="privatelink" onclick="toggle_private();"
401
 
         >hide private</a>]</span></td>
402
 
      </tr>
403
 
    </table>
404
 
  </td>
405
 
</tr>
406
 
</table>
 
48
        <b>Association</b>
 
49
</pre><br />
 
50
 
 
51
<hr/>
 
52
 
 
53
<p>This class represents an association between a server and a consumer. 
 
54
In general, users of this library will never see instances of this 
 
55
object. The only exception is if you implement a custom <code><a 
 
56
href="openid.store.interface.OpenIDStore-class.html" 
 
57
class="link"><code>OpenIDStore</code></a></code>.</p>
 
58
If you do implement such a store, it will need to store the values of 
 
59
the <code><a href="openid.association.Association-class.html#handle" 
 
60
class="link"><code>handle</code></a></code>, <code><a 
 
61
href="openid.association.Association-class.html#secret" 
 
62
class="link"><code>secret</code></a></code>, <code><a 
 
63
href="openid.association.Association-class.html#issued" 
 
64
class="link"><code>issued</code></a></code>, <code><a 
 
65
href="openid.association.Association-class.html#lifetime" 
 
66
class="link"><code>lifetime</code></a></code>, and <code><a 
 
67
href="openid.association.Association-class.html#assoc_type" 
 
68
class="link"><code>assoc_type</code></a></code> instance variables.
 
69
<hr/>
 
70
 
 
71
 
 
72
<!-- =========== START OF METHOD SUMMARY =========== -->
 
73
<table class="summary" border="1" cellpadding="3" cellspacing="0" width="100%" bgcolor="white">
 
74
<tr bgcolor="#70b0f0" class="summary">
 
75
  <th colspan="2">Method Summary</th></tr>
 
76
<tr><td align="right" valign="top" width="15%"><font size="-1">&nbsp;</font></td>
 
77
  <td><code><span class="summary-sig"><a href="openid.association.Association-class.html#__init__" class="summary-sig-name"><code>__init__</code></a>(<span class=summary-sig-arg>self</span>,
 
78
          <span class=summary-sig-arg>handle</span>,
 
79
          <span class=summary-sig-arg>secret</span>,
 
80
          <span class=summary-sig-arg>issued</span>,
 
81
          <span class=summary-sig-arg>lifetime</span>,
 
82
          <span class=summary-sig-arg>assoc_type</span>)</span></code>
 
83
<br />
 
84
This is the standard constructor for creating an association.</td></tr>
 
85
<tr><td align="right" valign="top" width="15%"><font size="-1">&nbsp;</font></td>
 
86
  <td><code><span class="summary-sig"><a href="openid.association.Association-class.html#fromExpiresIn" class="summary-sig-name"><code>fromExpiresIn</code></a>(<span class=summary-sig-arg>cls</span>,
 
87
          <span class=summary-sig-arg>expires_in</span>,
 
88
          <span class=summary-sig-arg>handle</span>,
 
89
          <span class=summary-sig-arg>secret</span>,
 
90
          <span class=summary-sig-arg>assoc_type</span>)</span></code>
 
91
<br />
 
92
This is an alternate constructor used by the OpenID consumer library 
 
93
to create associations.    <i>(Class method)</i>
 
94
</td></tr>
 
95
<tr><td align="right" valign="top" width="15%"><font size="-1">        <code>int</code>
 
96
</font></td>
 
97
  <td><code><span class="summary-sig"><a href="openid.association.Association-class.html#getExpiresIn" class="summary-sig-name"><code>getExpiresIn</code></a>(<span class=summary-sig-arg>self</span>,
 
98
          <span class=summary-sig-arg>now</span>)</span></code>
 
99
<br />
 
100
This returns the number of seconds this association is still valid 
 
101
for, or <code>0</code> if the association is no longer valid.</td></tr>
 
102
<tr><td align="right" valign="top" width="15%"><font size="-1">        <code>bool</code>
 
103
</font></td>
 
104
  <td><code><span class="summary-sig"><a href="openid.association.Association-class.html#__eq__" class="summary-sig-name"><code>__eq__</code></a>(<span class=summary-sig-arg>self</span>,
 
105
          <span class=summary-sig-arg>other</span>)</span></code>
 
106
<br />
 
107
This checks to see if two <code><a 
 
108
href="openid.association.Association-class.html" 
 
109
class="link"><code>Association</code></a></code> instances represent the 
 
110
same association.</td></tr>
 
111
<tr><td align="right" valign="top" width="15%"><font size="-1">        <code>bool</code>
 
112
</font></td>
 
113
  <td><code><span class="summary-sig"><a href="openid.association.Association-class.html#__ne__" class="summary-sig-name"><code>__ne__</code></a>(<span class=summary-sig-arg>self</span>,
 
114
          <span class=summary-sig-arg>other</span>)</span></code>
 
115
<br />
 
116
This checks to see if two <code><a 
 
117
href="openid.association.Association-class.html" 
 
118
class="link"><code>Association</code></a></code> instances represent 
 
119
different associations.</td></tr>
 
120
<tr><td align="right" valign="top" width="15%"><font size="-1">&nbsp;</font></td>
 
121
  <td><code><a name="__repr__"></a><span class="summary-sig"><span class="summary-sig-name">__repr__</span>(<span class=summary-sig-arg>self</span>)</span></code>
 
122
</td></tr>
 
123
<tr><td align="right" valign="top" width="15%"><font size="-1">&nbsp;</font></td>
 
124
  <td><code><span class="summary-sig"><a href="openid.association.Association-class.html#checkMessageSignature" class="summary-sig-name"><code>checkMessageSignature</code></a>(<span class=summary-sig-arg>self</span>,
 
125
          <span class=summary-sig-arg>message</span>)</span></code>
 
126
<br />
 
127
Given a message with a signature, calculate a new signature and return 
 
128
whether it matches the signature in the message.</td></tr>
 
129
<tr><td align="right" valign="top" width="15%"><font size="-1">&nbsp;</font></td>
 
130
  <td><code><span class="summary-sig"><a href="openid.association.Association-class.html#deserialize" class="summary-sig-name"><code>deserialize</code></a>(<span class=summary-sig-arg>cls</span>,
 
131
          <span class=summary-sig-arg>assoc_s</span>)</span></code>
 
132
<br />
 
133
Parse an association as stored by serialize().    <i>(Class method)</i>
 
134
</td></tr>
 
135
<tr><td align="right" valign="top" width="15%"><font size="-1">        str
 
136
</font></td>
 
137
  <td><code><span class="summary-sig"><a href="openid.association.Association-class.html#getMessageSignature" class="summary-sig-name"><code>getMessageSignature</code></a>(<span class=summary-sig-arg>self</span>,
 
138
          <span class=summary-sig-arg>message</span>)</span></code>
 
139
<br />
 
140
Return the signature of a message.</td></tr>
 
141
<tr><td align="right" valign="top" width="15%"><font size="-1">        str
 
142
</font></td>
 
143
  <td><code><span class="summary-sig"><a href="openid.association.Association-class.html#serialize" class="summary-sig-name"><code>serialize</code></a>(<span class=summary-sig-arg>self</span>)</span></code>
 
144
<br />
 
145
Convert an association to KV form.</td></tr>
 
146
<tr><td align="right" valign="top" width="15%"><font size="-1">        str
 
147
</font></td>
 
148
  <td><code><span class="summary-sig"><a href="openid.association.Association-class.html#sign" class="summary-sig-name"><code>sign</code></a>(<span class=summary-sig-arg>self</span>,
 
149
          <span class=summary-sig-arg>pairs</span>)</span></code>
 
150
<br />
 
151
Generate a signature for a sequence of (key, value) pairs</td></tr>
 
152
<tr><td align="right" valign="top" width="15%"><font size="-1">        <a href="openid.message.Message-class.html" 
 
153
        class="link"><code>openid.message.Message</code></a>
 
154
</font></td>
 
155
  <td><code><span class="summary-sig"><a href="openid.association.Association-class.html#signMessage" class="summary-sig-name"><code>signMessage</code></a>(<span class=summary-sig-arg>self</span>,
 
156
          <span class=summary-sig-arg>message</span>)</span></code>
 
157
<br />
 
158
Add a signature (and a signed list) to a message.</td></tr>
 
159
  <tr><td colspan="2">
 
160
    <b>Inherited from <a href="__builtin__.object-class.html"><code>object</code></a>:</b>
 
161
      <a href="__builtin__.object-class.html#__delattr__"><code>__delattr__</code></a>, 
 
162
      <a href="__builtin__.object-class.html#__getattribute__"><code>__getattribute__</code></a>, 
 
163
      <a href="__builtin__.object-class.html#__hash__"><code>__hash__</code></a>, 
 
164
      <a href="__builtin__.object-class.html#__new__"><code>__new__</code></a>, 
 
165
      <a href="__builtin__.object-class.html#__reduce__"><code>__reduce__</code></a>, 
 
166
      <a href="__builtin__.object-class.html#__reduce_ex__"><code>__reduce_ex__</code></a>, 
 
167
      <a href="__builtin__.object-class.html#__setattr__"><code>__setattr__</code></a>, 
 
168
      <a href="__builtin__.object-class.html#__str__"><code>__str__</code></a>
 
169
    </td></tr>
 
170
</table><br />
 
171
 
 
172
 
 
173
<!-- =========== START OF PROPERTY SUMMARY =========== -->
 
174
<table class="summary" border="1" cellpadding="3" cellspacing="0" width="100%" bgcolor="white">
 
175
<tr bgcolor="#70b0f0" class="summary">
 
176
  <th colspan="2">Property Summary</th></tr>
 
177
<tr><td align="right" valign="top" width="15%"><font size="-1">&nbsp;</font></td>
 
178
  <td><b><a href="openid.association.Association-class.html#expiresIn"><code>expiresIn</code></a></b>: This returns the number of seconds this association is still valid 
 
179
for, or <code>0</code> if the association is no longer valid.</td></tr></table><br />
 
180
 
 
181
 
 
182
<!-- =========== START OF INSTANCE VARIABLE SUMMARY =========== -->
 
183
<table class="summary" border="1" cellpadding="3" cellspacing="0" width="100%" bgcolor="white">
 
184
<tr bgcolor="#70b0f0" class="summary">
 
185
  <th colspan="2">Instance Variable Summary</th></tr>
 
186
<tr><td align="right" valign="top" width="15%"><font size="-1"><code>str</code></font></td>
 
187
<td><b><a href="openid.association.Association-class.html#handle"><code>handle</code></a></b>: This is the handle the server gave this association.</td></tr>
 
188
<tr><td align="right" valign="top" width="15%"><font size="-1"><code>str</code></font></td>
 
189
<td><b><a href="openid.association.Association-class.html#secret"><code>secret</code></a></b>: This is the shared secret the server generated for this 
 
190
association.</td></tr>
 
191
<tr><td align="right" valign="top" width="15%"><font size="-1"><code>int</code></font></td>
 
192
<td><b><a href="openid.association.Association-class.html#issued"><code>issued</code></a></b>: This is the time this association was issued, in seconds since 00:00 
 
193
GMT, January 1, 1970.</td></tr>
 
194
<tr><td align="right" valign="top" width="15%"><font size="-1"><code>int</code></font></td>
 
195
<td><b><a href="openid.association.Association-class.html#lifetime"><code>lifetime</code></a></b>: This is the amount of time this association is good for, measured in 
 
196
seconds since the association was issued.</td></tr>
 
197
<tr><td align="right" valign="top" width="15%"><font size="-1"><code>str</code></font></td>
 
198
<td><b><a href="openid.association.Association-class.html#assoc_type"><code>assoc_type</code></a></b>: This is the type of association this instance represents.</td></tr>
 
199
</table><br />
 
200
 
 
201
 
 
202
<!-- =========== START OF CLASS VARIABLE SUMMARY =========== -->
 
203
<table class="summary" border="1" cellpadding="3" cellspacing="0" width="100%" bgcolor="white">
 
204
<tr bgcolor="#70b0f0" class="summary">
 
205
  <th colspan="2">Class Variable Summary</th></tr>
 
206
<tr><td align="right" valign="top" width="15%"><font size="-1"><code>list</code></font></td>
 
207
<td><b><a href="openid.association.Association-class.html#assoc_keys"><code>assoc_keys</code></a></b> = <span title="['version', 'handle', 'secret', 'issued', 'lifetime', 'assoc_type']"><code>['version',&nbsp;'handle',&nbsp;'secret',&nbsp;'issued',&nbsp;'<span class="variable-ellipsis">...</span></code>
 
208
</span></td></tr>
 
209
</table><br />
 
210
 
 
211
 
 
212
<!-- =========== START OF INSTANCE METHOD DETAILS =========== -->
 
213
<table class="details" border="1" cellpadding="3" cellspacing="0" width="100%" bgcolor="white">
 
214
<tr bgcolor="#70b0f0" class="details">
 
215
  <th colspan="2">Instance Method Details</th></tr>
 
216
</table>
 
217
 
407
218
<a name="__init__"></a>
408
 
<div>
409
 
<table class="details" border="1" cellpadding="3"
410
 
       cellspacing="0" width="100%" bgcolor="white">
411
 
<tr><td>
412
 
  <table width="100%" cellpadding="0" cellspacing="0" border="0">
413
 
  <tr valign="top"><td>
414
 
  <h3 class="epydoc"><span class="sig"><span class="sig-name">__init__</span>(<span class="sig-arg">self</span>,
415
 
        <span class="sig-arg">handle</span>,
416
 
        <span class="sig-arg">secret</span>,
417
 
        <span class="sig-arg">issued</span>,
418
 
        <span class="sig-arg">lifetime</span>,
419
 
        <span class="sig-arg">assoc_type</span>)</span>
420
 
    <br /><em class="fname">(Constructor)</em>
421
 
  </h3>
422
 
  </td><td align="right" valign="top"
423
 
    ><span class="codelink"><a href="openid.association-pysrc.html#Association.__init__">source&nbsp;code</a></span>&nbsp;
424
 
    </td>
425
 
  </table>
426
 
  
427
 
  <br />This is the standard constructor for creating an association.
428
 
  <dl><dt></dt><dd>
429
 
    <dl><dt>Parameters:</dt></dl>
430
 
    <ul class="nomargin">
431
 
        <li><strong class="pname"><code>handle</code></strong> (<code>str</code>) - This is the handle the server gave this association.</li>
432
 
        <li><strong class="pname"><code>secret</code></strong> (<code>str</code>) - This is the shared secret the server generated for this 
433
 
          association.</li>
434
 
        <li><strong class="pname"><code>issued</code></strong> (<code>int</code>) - This is the time this association was issued, in seconds since
435
 
          00:00 GMT, January 1, 1970.  (ie, a unix timestamp)</li>
436
 
        <li><strong class="pname"><code>lifetime</code></strong> (<code>int</code>) - This is the amount of time this association is good for, 
437
 
          measured in seconds since the association was issued.</li>
438
 
        <li><strong class="pname"><code>assoc_type</code></strong> (<code>str</code>) - This is the type of association this instance represents.  The
439
 
          only valid value of this field at this time is 
440
 
          <code>'HMAC-SHA1'</code>, but new types may be defined in the 
441
 
          future.</li>
442
 
    </ul>
443
 
    <dl><dt>Overrides:
444
 
      object.__init__
445
 
    </dt></dl>
446
 
  </dd></dl>
447
 
</td></tr></table>
448
 
</div>
449
 
<a name="fromExpiresIn"></a>
450
 
<div>
451
 
<table class="details" border="1" cellpadding="3"
452
 
       cellspacing="0" width="100%" bgcolor="white">
453
 
<tr><td>
454
 
  <table width="100%" cellpadding="0" cellspacing="0" border="0">
455
 
  <tr valign="top"><td>
456
 
  <h3 class="epydoc"><span class="sig"><span class="sig-name">fromExpiresIn</span>(<span class="sig-arg">cls</span>,
457
 
        <span class="sig-arg">expires_in</span>,
458
 
        <span class="sig-arg">handle</span>,
459
 
        <span class="sig-arg">secret</span>,
460
 
        <span class="sig-arg">assoc_type</span>)</span>
461
 
    <br /><em class="fname">Class Method</em>
462
 
  </h3>
463
 
  </td><td align="right" valign="top"
464
 
    ><span class="codelink"><a href="openid.association-pysrc.html#Association.fromExpiresIn">source&nbsp;code</a></span>&nbsp;
465
 
    </td>
466
 
  </table>
467
 
  
468
 
  <br />This is an alternate constructor used by the OpenID consumer library 
469
 
  to create associations.  <code><a 
470
 
  href="openid.store.interface.OpenIDStore-class.html" 
471
 
  class="link">OpenIDStore</a></code> implementations shouldn't use this 
472
 
  constructor.
473
 
  <dl><dt></dt><dd>
474
 
    <dl><dt>Parameters:</dt></dl>
475
 
    <ul class="nomargin">
476
 
        <li><strong class="pname"><code>expires_in</code></strong> (<code>int</code>) - This is the amount of time this association is good for, 
477
 
          measured in seconds since the association was issued.</li>
478
 
        <li><strong class="pname"><code>handle</code></strong> (<code>str</code>) - This is the handle the server gave this association.</li>
479
 
        <li><strong class="pname"><code>secret</code></strong> (<code>str</code>) - This is the shared secret the server generated for this 
480
 
          association.</li>
481
 
        <li><strong class="pname"><code>assoc_type</code></strong> (<code>str</code>) - This is the type of association this instance represents.  The
482
 
          only valid value of this field at this time is 
483
 
          <code>'HMAC-SHA1'</code>, but new types may be defined in the 
484
 
          future.</li>
485
 
    </ul>
486
 
  </dd></dl>
487
 
</td></tr></table>
488
 
</div>
 
219
<table width="100%" class="func-details" bgcolor="#e0e0e0"><tr><td>
 
220
  <h3><span class="sig"><span class="sig-name">__init__</span>(<span class=sig-arg>self</span>,
 
221
          <span class=sig-arg>handle</span>,
 
222
          <span class=sig-arg>secret</span>,
 
223
          <span class=sig-arg>issued</span>,
 
224
          <span class=sig-arg>lifetime</span>,
 
225
          <span class=sig-arg>assoc_type</span>)</span>
 
226
    <br /><i>(Constructor)</i>
 
227
  </h3>
 
228
  This is the standard constructor for creating an association.
 
229
  <dl><dt></dt><dd>
 
230
    <dl><dt><b>Parameters:</b></dt>
 
231
      <dd><code><b>handle</b></code> -
 
232
         This is the handle the server gave this association.
 
233
        <br /><i>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
 
234
        (type=<code>str</code>)</i>
 
235
      <dd><code><b>secret</b></code> -
 
236
         This is the shared secret the server generated for this 
 
237
        association.
 
238
        <br /><i>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
 
239
        (type=<code>str</code>)</i>
 
240
      <dd><code><b>issued</b></code> -
 
241
         This is the time this association was issued, in seconds since 
 
242
        00:00 GMT, January 1, 1970. (ie, a unix timestamp)
 
243
        <br /><i>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
 
244
        (type=<code>int</code>)</i>
 
245
      <dd><code><b>lifetime</b></code> -
 
246
         This is the amount of time this association is good for, 
 
247
        measured in seconds since the association was issued.
 
248
        <br /><i>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
 
249
        (type=<code>int</code>)</i>
 
250
      <dd><code><b>assoc_type</b></code> -
 
251
         This is the type of association this instance represents. The 
 
252
        only valid value of this field at this time is 
 
253
        <code>'HMAC-SHA1'</code>, but new types may be defined in the 
 
254
        future.
 
255
        <br /><i>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
 
256
        (type=<code>str</code>)</i>
 
257
      </dd>
 
258
    </dl>
 
259
    <dl><dt><b>Overrides:</b></dt>
 
260
      <dd><a href="__builtin__.object-class.html#__init__"><code>__builtin__.object.__init__</code></a></dd>
 
261
    </dl>
 
262
  </dd></dl>
 
263
</td></tr></table>
 
264
 
489
265
<a name="getExpiresIn"></a>
490
 
<div>
491
 
<table class="details" border="1" cellpadding="3"
492
 
       cellspacing="0" width="100%" bgcolor="white">
493
 
<tr><td>
494
 
  <table width="100%" cellpadding="0" cellspacing="0" border="0">
495
 
  <tr valign="top"><td>
496
 
  <h3 class="epydoc"><span class="sig"><span class="sig-name">getExpiresIn</span>(<span class="sig-arg">self</span>,
497
 
        <span class="sig-arg">now</span>=<span class="sig-default">None</span>)</span>
 
266
<table width="100%" class="func-details" bgcolor="#e0e0e0"><tr><td>
 
267
  <h3><span class="sig"><span class="sig-name">getExpiresIn</span>(<span class=sig-arg>self</span>,
 
268
          <span class=sig-arg>now</span>=<span class=sig-default>None</span>)</span>
498
269
  </h3>
499
 
  </td><td align="right" valign="top"
500
 
    ><span class="codelink"><a href="openid.association-pysrc.html#Association.getExpiresIn">source&nbsp;code</a></span>&nbsp;
501
 
    </td>
502
 
  </table>
503
 
  
504
 
  <br />This returns the number of seconds this association is still valid 
 
270
  This returns the number of seconds this association is still valid 
505
271
  for, or <code>0</code> if the association is no longer valid.
506
272
  <dl><dt></dt><dd>
507
 
    <dl><dt>Returns: <code>int</code></dt>
508
 
        <dd>The number of seconds this association is still valid for, or 
509
 
          <code>0</code> if the association is no longer valid.</dd></dl>
 
273
    <dl><dt><b>Returns:</b></dt>
 
274
      <dd>
 
275
        The number of seconds this association is still valid for, or 
 
276
        <code>0</code> if the association is no longer valid.
 
277
        <br /><i>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
 
278
        (type=<code>int</code>)</i>
 
279
      </dd>
 
280
    </dl>
510
281
  </dd></dl>
511
282
</td></tr></table>
512
 
</div>
 
283
 
513
284
<a name="__eq__"></a>
514
 
<div>
515
 
<table class="details" border="1" cellpadding="3"
516
 
       cellspacing="0" width="100%" bgcolor="white">
517
 
<tr><td>
518
 
  <table width="100%" cellpadding="0" cellspacing="0" border="0">
519
 
  <tr valign="top"><td>
520
 
  <h3 class="epydoc"><span class="sig"><span class="sig-name">__eq__</span>(<span class="sig-arg">self</span>,
521
 
        <span class="sig-arg">other</span>)</span>
522
 
    <br /><em class="fname">(Equality operator)</em>
 
285
<table width="100%" class="func-details" bgcolor="#e0e0e0"><tr><td>
 
286
  <h3><span class="sig"><span class="sig-name">__eq__</span>(<span class=sig-arg>self</span>,
 
287
          <span class=sig-arg>other</span>)</span>
 
288
    <br /><i>(Equality operator)</i>
523
289
  </h3>
524
 
  </td><td align="right" valign="top"
525
 
    ><span class="codelink"><a href="openid.association-pysrc.html#Association.__eq__">source&nbsp;code</a></span>&nbsp;
526
 
    </td>
527
 
  </table>
528
 
  
529
 
  <br />This checks to see if two <code><a 
 
290
  This checks to see if two <code><a 
530
291
  href="openid.association.Association-class.html" 
531
 
  class="link">Association</a></code> instances represent the same 
532
 
  association.
 
292
  class="link"><code>Association</code></a></code> instances represent 
 
293
  the same association.
533
294
  <dl><dt></dt><dd>
534
 
    <dl><dt>Returns: <code>bool</code></dt>
535
 
        <dd><code>True</code> if the two instances represent the same 
536
 
          association, <code>False</code> otherwise.</dd></dl>
 
295
    <dl><dt><b>Returns:</b></dt>
 
296
      <dd>
 
297
        <code>True</code> if the two instances represent the same 
 
298
        association, <code>False</code> otherwise.
 
299
        <br /><i>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
 
300
        (type=<code>bool</code>)</i>
 
301
      </dd>
 
302
    </dl>
537
303
  </dd></dl>
538
304
</td></tr></table>
539
 
</div>
 
305
 
540
306
<a name="__ne__"></a>
541
 
<div>
542
 
<table class="details" border="1" cellpadding="3"
543
 
       cellspacing="0" width="100%" bgcolor="white">
544
 
<tr><td>
545
 
  <table width="100%" cellpadding="0" cellspacing="0" border="0">
546
 
  <tr valign="top"><td>
547
 
  <h3 class="epydoc"><span class="sig"><span class="sig-name">__ne__</span>(<span class="sig-arg">self</span>,
548
 
        <span class="sig-arg">other</span>)</span>
 
307
<table width="100%" class="func-details" bgcolor="#e0e0e0"><tr><td>
 
308
  <h3><span class="sig"><span class="sig-name">__ne__</span>(<span class=sig-arg>self</span>,
 
309
          <span class=sig-arg>other</span>)</span>
549
310
  </h3>
550
 
  </td><td align="right" valign="top"
551
 
    ><span class="codelink"><a href="openid.association-pysrc.html#Association.__ne__">source&nbsp;code</a></span>&nbsp;
552
 
    </td>
553
 
  </table>
554
 
  
555
 
  <br />This checks to see if two <code><a 
 
311
  This checks to see if two <code><a 
556
312
  href="openid.association.Association-class.html" 
557
 
  class="link">Association</a></code> instances represent different 
558
 
  associations.
559
 
  <dl><dt></dt><dd>
560
 
    <dl><dt>Returns: <code>bool</code></dt>
561
 
        <dd><code>True</code> if the two instances represent different 
562
 
          associations, <code>False</code> otherwise.</dd></dl>
563
 
  </dd></dl>
564
 
</td></tr></table>
565
 
</div>
 
313
  class="link"><code>Association</code></a></code> instances represent 
 
314
  different associations.
 
315
  <dl><dt></dt><dd>
 
316
    <dl><dt><b>Returns:</b></dt>
 
317
      <dd>
 
318
        <code>True</code> if the two instances represent different 
 
319
        associations, <code>False</code> otherwise.
 
320
        <br /><i>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
 
321
        (type=<code>bool</code>)</i>
 
322
      </dd>
 
323
    </dl>
 
324
  </dd></dl>
 
325
</td></tr></table>
 
326
 
 
327
<a name="checkMessageSignature"></a>
 
328
<table width="100%" class="func-details" bgcolor="#e0e0e0"><tr><td>
 
329
  <h3><span class="sig"><span class="sig-name">checkMessageSignature</span>(<span class=sig-arg>self</span>,
 
330
          <span class=sig-arg>message</span>)</span>
 
331
  </h3>
 
332
  Given a message with a signature, calculate a new signature and 
 
333
  return whether it matches the signature in the message.
 
334
  <dl><dt></dt><dd>
 
335
    <dl><dt><b>Raises:</b></dt>
 
336
      <dd><code><b>ValueError</b></code> -
 
337
        if the message has no signature or no signature can be 
 
338
        calculated for it.
 
339
    </dl>
 
340
  </dd></dl>
 
341
</td></tr></table>
 
342
 
 
343
<a name="getMessageSignature"></a>
 
344
<table width="100%" class="func-details" bgcolor="#e0e0e0"><tr><td>
 
345
  <h3><span class="sig"><span class="sig-name">getMessageSignature</span>(<span class=sig-arg>self</span>,
 
346
          <span class=sig-arg>message</span>)</span>
 
347
  </h3>
 
348
  <p>Return the signature of a message.</p>
 
349
  If I am not a sign-all association, the message must have a signed 
 
350
  list.
 
351
  <dl><dt></dt><dd>
 
352
    <dl><dt><b>Returns:</b></dt>
 
353
      <dd>
 
354
        the signature, base64 encoded
 
355
        <br /><i>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
 
356
        (type=str)</i>
 
357
      </dd>
 
358
    </dl>
 
359
    <dl><dt><b>Raises:</b></dt>
 
360
      <dd><code><b>ValueError</b></code> -
 
361
        If there is no signed list and I am not a sign-all type of 
 
362
        association.
 
363
    </dl>
 
364
  </dd></dl>
 
365
</td></tr></table>
 
366
 
566
367
<a name="serialize"></a>
567
 
<div>
568
 
<table class="details" border="1" cellpadding="3"
569
 
       cellspacing="0" width="100%" bgcolor="white">
570
 
<tr><td>
571
 
  <table width="100%" cellpadding="0" cellspacing="0" border="0">
572
 
  <tr valign="top"><td>
573
 
  <h3 class="epydoc"><span class="sig"><span class="sig-name">serialize</span>(<span class="sig-arg">self</span>)</span>
574
 
  </h3>
575
 
  </td><td align="right" valign="top"
576
 
    ><span class="codelink"><a href="openid.association-pysrc.html#Association.serialize">source&nbsp;code</a></span>&nbsp;
577
 
    </td>
578
 
  </table>
579
 
  
580
 
  <br />Convert an association to KV form.
581
 
  <dl><dt></dt><dd>
582
 
    <dl><dt>Returns: str</dt>
583
 
        <dd>String in KV form suitable for deserialization by 
584
 
          deserialize.</dd></dl>
585
 
  </dd></dl>
586
 
</td></tr></table>
587
 
</div>
 
368
<table width="100%" class="func-details" bgcolor="#e0e0e0"><tr><td>
 
369
  <h3><span class="sig"><span class="sig-name">serialize</span>(<span class=sig-arg>self</span>)</span>
 
370
  </h3>
 
371
  Convert an association to KV form.
 
372
  <dl><dt></dt><dd>
 
373
    <dl><dt><b>Returns:</b></dt>
 
374
      <dd>
 
375
        String in KV form suitable for deserialization by 
 
376
        deserialize.
 
377
        <br /><i>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
 
378
        (type=str)</i>
 
379
      </dd>
 
380
    </dl>
 
381
  </dd></dl>
 
382
</td></tr></table>
 
383
 
 
384
<a name="sign"></a>
 
385
<table width="100%" class="func-details" bgcolor="#e0e0e0"><tr><td>
 
386
  <h3><span class="sig"><span class="sig-name">sign</span>(<span class=sig-arg>self</span>,
 
387
          <span class=sig-arg>pairs</span>)</span>
 
388
  </h3>
 
389
  Generate a signature for a sequence of (key, value) pairs
 
390
  <dl><dt></dt><dd>
 
391
    <dl><dt><b>Parameters:</b></dt>
 
392
      <dd><code><b>pairs</b></code> -
 
393
         The pairs to sign, in order
 
394
        <br /><i>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
 
395
        (type=sequence of (str, str))</i>
 
396
      </dd>
 
397
    </dl>
 
398
    <dl><dt><b>Returns:</b></dt>
 
399
      <dd>
 
400
        The binary signature of this sequence of pairs
 
401
        <br /><i>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
 
402
        (type=str)</i>
 
403
      </dd>
 
404
    </dl>
 
405
  </dd></dl>
 
406
</td></tr></table>
 
407
 
 
408
<a name="signMessage"></a>
 
409
<table width="100%" class="func-details" bgcolor="#e0e0e0"><tr><td>
 
410
  <h3><span class="sig"><span class="sig-name">signMessage</span>(<span class=sig-arg>self</span>,
 
411
          <span class=sig-arg>message</span>)</span>
 
412
  </h3>
 
413
  Add a signature (and a signed list) to a message.
 
414
  <dl><dt></dt><dd>
 
415
    <dl><dt><b>Returns:</b></dt>
 
416
      <dd>
 
417
        a new Message object with a signature
 
418
        <br /><i>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
 
419
        (type=<a href="openid.message.Message-class.html" 
 
420
        class="link"><code>openid.message.Message</code></a>)</i>
 
421
      </dd>
 
422
    </dl>
 
423
  </dd></dl>
 
424
</td></tr></table>
 
425
<br />
 
426
 
 
427
 
 
428
<!-- =========== START OF CLASS METHOD DETAILS =========== -->
 
429
<table class="details" border="1" cellpadding="3" cellspacing="0" width="100%" bgcolor="white">
 
430
<tr bgcolor="#70b0f0" class="details">
 
431
  <th colspan="2">Class Method Details</th></tr>
 
432
</table>
 
433
 
 
434
<a name="fromExpiresIn"></a>
 
435
<table width="100%" class="func-details" bgcolor="#e0e0e0"><tr><td>
 
436
  <h3><span class="sig"><span class="sig-name">fromExpiresIn</span>(<span class=sig-arg>cls</span>,
 
437
          <span class=sig-arg>expires_in</span>,
 
438
          <span class=sig-arg>handle</span>,
 
439
          <span class=sig-arg>secret</span>,
 
440
          <span class=sig-arg>assoc_type</span>)</span>
 
441
  </h3>
 
442
  This is an alternate constructor used by the OpenID consumer library 
 
443
  to create associations. <code><a 
 
444
  href="openid.store.interface.OpenIDStore-class.html" 
 
445
  class="link"><code>OpenIDStore</code></a></code> implementations 
 
446
  shouldn't use this constructor.
 
447
  <dl><dt></dt><dd>
 
448
    <dl><dt><b>Parameters:</b></dt>
 
449
      <dd><code><b>expires_in</b></code> -
 
450
         This is the amount of time this association is good for, 
 
451
        measured in seconds since the association was issued.
 
452
        <br /><i>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
 
453
        (type=<code>int</code>)</i>
 
454
      <dd><code><b>handle</b></code> -
 
455
         This is the handle the server gave this association.
 
456
        <br /><i>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
 
457
        (type=<code>str</code>)</i>
 
458
      <dd><code><b>secret</b></code> -
 
459
         This is the shared secret the server generated for this 
 
460
        association.
 
461
        <br /><i>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
 
462
        (type=<code>str</code>)</i>
 
463
      <dd><code><b>assoc_type</b></code> -
 
464
         This is the type of association this instance represents. The 
 
465
        only valid value of this field at this time is 
 
466
        <code>'HMAC-SHA1'</code>, but new types may be defined in the 
 
467
        future.
 
468
        <br /><i>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
 
469
        (type=<code>str</code>)</i>
 
470
      </dd>
 
471
    </dl>
 
472
  </dd></dl>
 
473
</td></tr></table>
 
474
 
588
475
<a name="deserialize"></a>
589
 
<div>
590
 
<table class="details" border="1" cellpadding="3"
591
 
       cellspacing="0" width="100%" bgcolor="white">
592
 
<tr><td>
593
 
  <table width="100%" cellpadding="0" cellspacing="0" border="0">
594
 
  <tr valign="top"><td>
595
 
  <h3 class="epydoc"><span class="sig"><span class="sig-name">deserialize</span>(<span class="sig-arg">cls</span>,
596
 
        <span class="sig-arg">assoc_s</span>)</span>
597
 
    <br /><em class="fname">Class Method</em>
 
476
<table width="100%" class="func-details" bgcolor="#e0e0e0"><tr><td>
 
477
  <h3><span class="sig"><span class="sig-name">deserialize</span>(<span class=sig-arg>cls</span>,
 
478
          <span class=sig-arg>assoc_s</span>)</span>
598
479
  </h3>
599
 
  </td><td align="right" valign="top"
600
 
    ><span class="codelink"><a href="openid.association-pysrc.html#Association.deserialize">source&nbsp;code</a></span>&nbsp;
601
 
    </td>
602
 
  </table>
603
 
  
604
 
  <br /><p>Parse an association as stored by serialize().</p>
 
480
  <p>Parse an association as stored by serialize().</p>
605
481
  inverse of serialize
606
482
  <dl><dt></dt><dd>
607
 
    <dl><dt>Parameters:</dt></dl>
608
 
    <ul class="nomargin">
609
 
        <li><strong class="pname"><code>assoc_s</code></strong> (str) - Association as serialized by serialize()</li>
610
 
    </ul>
611
 
    <dl><dt>Returns:</dt>
612
 
        <dd>instance of this class</dd></dl>
613
 
  </dd></dl>
614
 
</td></tr></table>
615
 
</div>
616
 
<a name="sign"></a>
617
 
<div>
618
 
<table class="details" border="1" cellpadding="3"
619
 
       cellspacing="0" width="100%" bgcolor="white">
620
 
<tr><td>
621
 
  <table width="100%" cellpadding="0" cellspacing="0" border="0">
622
 
  <tr valign="top"><td>
623
 
  <h3 class="epydoc"><span class="sig"><span class="sig-name">sign</span>(<span class="sig-arg">self</span>,
624
 
        <span class="sig-arg">pairs</span>)</span>
625
 
  </h3>
626
 
  </td><td align="right" valign="top"
627
 
    ><span class="codelink"><a href="openid.association-pysrc.html#Association.sign">source&nbsp;code</a></span>&nbsp;
628
 
    </td>
629
 
  </table>
630
 
  
631
 
  <br />Generate a signature for a sequence of (key, value) pairs
632
 
  <dl><dt></dt><dd>
633
 
    <dl><dt>Parameters:</dt></dl>
634
 
    <ul class="nomargin">
635
 
        <li><strong class="pname"><code>pairs</code></strong> (sequence of (str, str)) - The pairs to sign, in order</li>
636
 
    </ul>
637
 
    <dl><dt>Returns: str</dt>
638
 
        <dd>The binary signature of this sequence of pairs</dd></dl>
639
 
  </dd></dl>
640
 
</td></tr></table>
641
 
</div>
642
 
<a name="signDict"></a>
643
 
<div>
644
 
<table class="details" border="1" cellpadding="3"
645
 
       cellspacing="0" width="100%" bgcolor="white">
646
 
<tr><td>
647
 
  <table width="100%" cellpadding="0" cellspacing="0" border="0">
648
 
  <tr valign="top"><td>
649
 
  <h3 class="epydoc"><span class="sig"><span class="sig-name">signDict</span>(<span class="sig-arg">self</span>,
650
 
        <span class="sig-arg">fields</span>,
651
 
        <span class="sig-arg">data</span>,
652
 
        <span class="sig-arg">prefix</span>=<span class="sig-default">'openid.'</span>)</span>
653
 
  </h3>
654
 
  </td><td align="right" valign="top"
655
 
    ><span class="codelink"><a href="openid.association-pysrc.html#Association.signDict">source&nbsp;code</a></span>&nbsp;
656
 
    </td>
657
 
  </table>
658
 
  
659
 
  <br />Generate a signature for some fields in a dictionary
660
 
  <dl><dt></dt><dd>
661
 
    <dl><dt>Parameters:</dt></dl>
662
 
    <ul class="nomargin">
663
 
        <li><strong class="pname"><code>fields</code></strong> (sequence of str) - The fields to sign, in order</li>
664
 
        <li><strong class="pname"><code>data</code></strong> ({str:str}) - Dictionary of values to sign</li>
665
 
    </ul>
666
 
    <dl><dt>Returns: str</dt>
667
 
        <dd>the signature, base64 encoded</dd></dl>
668
 
  </dd></dl>
669
 
</td></tr></table>
670
 
</div>
671
 
<a name="addSignature"></a>
672
 
<div>
673
 
<table class="details" border="1" cellpadding="3"
674
 
       cellspacing="0" width="100%" bgcolor="white">
675
 
<tr><td>
676
 
  <table width="100%" cellpadding="0" cellspacing="0" border="0">
677
 
  <tr valign="top"><td>
678
 
  <h3 class="epydoc"><span class="sig"><span class="sig-name">addSignature</span>(<span class="sig-arg">self</span>,
679
 
        <span class="sig-arg">fields</span>,
680
 
        <span class="sig-arg">data</span>,
681
 
        <span class="sig-arg">prefix</span>=<span class="sig-default">'openid.'</span>)</span>
682
 
  </h3>
683
 
  </td><td align="right" valign="top"
684
 
    ><span class="codelink"><a href="openid.association-pysrc.html#Association.addSignature">source&nbsp;code</a></span>&nbsp;
685
 
    </td>
686
 
  </table>
687
 
  
688
 
  
689
 
  <dl><dt></dt><dd>
690
 
  </dd></dl>
691
 
</td></tr></table>
692
 
</div>
693
 
<a name="checkSignature"></a>
694
 
<div>
695
 
<table class="details" border="1" cellpadding="3"
696
 
       cellspacing="0" width="100%" bgcolor="white">
697
 
<tr><td>
698
 
  <table width="100%" cellpadding="0" cellspacing="0" border="0">
699
 
  <tr valign="top"><td>
700
 
  <h3 class="epydoc"><span class="sig"><span class="sig-name">checkSignature</span>(<span class="sig-arg">self</span>,
701
 
        <span class="sig-arg">data</span>,
702
 
        <span class="sig-arg">prefix</span>=<span class="sig-default">'openid.'</span>)</span>
703
 
  </h3>
704
 
  </td><td align="right" valign="top"
705
 
    ><span class="codelink"><a href="openid.association-pysrc.html#Association.checkSignature">source&nbsp;code</a></span>&nbsp;
706
 
    </td>
707
 
  </table>
708
 
  
709
 
  
710
 
  <dl><dt></dt><dd>
711
 
  </dd></dl>
712
 
</td></tr></table>
713
 
</div>
714
 
<br />
715
 
<!-- ==================== CLASS VARIABLE DETAILS ==================== -->
716
 
<a name="section-ClassVariableDetails"></a>
717
 
<table class="summary" border="1" cellpadding="3"
718
 
       cellspacing="0" width="100%" bgcolor="white">
719
 
<tr bgcolor="#70b0f0" class="table-header">
720
 
  <td colspan="2" class="table-header">
721
 
    <table border="0" cellpadding="0" cellspacing="0" width="100%">
722
 
      <tr valign="top">
723
 
        <td align="left"><span class="table-header">Class Variable Details</span></td>
724
 
        <td align="right" valign="top"
725
 
         ><span class="options">[<a href="#section-ClassVariableDetails"
726
 
         class="privatelink" onclick="toggle_private();"
727
 
         >hide private</a>]</span></td>
728
 
      </tr>
729
 
    </table>
730
 
  </td>
731
 
</tr>
732
 
</table>
733
 
<a name="SIG_LENGTH"></a>
734
 
<div>
735
 
<table class="details" border="1" cellpadding="3"
736
 
       cellspacing="0" width="100%" bgcolor="white">
737
 
<tr><td>
738
 
  <h3 class="epydoc">SIG_LENGTH</h3>
739
 
  
740
 
  <dl><dt></dt><dd>
741
 
    <dl><dt>Value:</dt>
742
 
      <dd><table><tr><td><pre class="variable">
743
 
20&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
744
 
      </pre></td></tr></table></dd>
745
 
    </dl>
746
 
  </dd></dl>
747
 
</td></tr></table>
748
 
</div>
749
 
<a name="assoc_keys"></a>
750
 
<div>
751
 
<table class="details" border="1" cellpadding="3"
752
 
       cellspacing="0" width="100%" bgcolor="white">
753
 
<tr><td>
754
 
  <h3 class="epydoc">assoc_keys</h3>
755
 
  
756
 
  <dl><dt></dt><dd>
757
 
    <dl><dt>Value:</dt>
758
 
      <dd><table><tr><td><pre class="variable">
759
 
['version', 'handle', 'secret', 'issued', 'lifetime', 'assoc_type']    
760
 
      </pre></td></tr></table></dd>
761
 
    </dl>
762
 
  </dd></dl>
763
 
</td></tr></table>
764
 
</div>
765
 
<br />
766
 
<!-- ==================== INSTANCE VARIABLE DETAILS ==================== -->
767
 
<a name="section-InstanceVariableDetails"></a>
768
 
<table class="summary" border="1" cellpadding="3"
769
 
       cellspacing="0" width="100%" bgcolor="white">
770
 
<tr bgcolor="#70b0f0" class="table-header">
771
 
  <td colspan="2" class="table-header">
772
 
    <table border="0" cellpadding="0" cellspacing="0" width="100%">
773
 
      <tr valign="top">
774
 
        <td align="left"><span class="table-header">Instance Variable Details</span></td>
775
 
        <td align="right" valign="top"
776
 
         ><span class="options">[<a href="#section-InstanceVariableDetails"
777
 
         class="privatelink" onclick="toggle_private();"
778
 
         >hide private</a>]</span></td>
779
 
      </tr>
780
 
    </table>
781
 
  </td>
782
 
</tr>
783
 
</table>
 
483
    <dl><dt><b>Parameters:</b></dt>
 
484
      <dd><code><b>assoc_s</b></code> -
 
485
         Association as serialized by serialize()
 
486
        <br /><i>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
 
487
        (type=str)</i>
 
488
      </dd>
 
489
    </dl>
 
490
    <dl><dt><b>Returns:</b></dt>
 
491
      <dd>
 
492
        instance of this class
 
493
      </dd>
 
494
    </dl>
 
495
  </dd></dl>
 
496
</td></tr></table>
 
497
<br />
 
498
 
 
499
 
 
500
<!-- =========== START OF PROPERTY DETAILS =========== -->
 
501
<table class="details" border="1" cellpadding="3" cellspacing="0" width="100%" bgcolor="white">
 
502
<tr bgcolor="#70b0f0" class="details">
 
503
  <th colspan="2">Property Details</th></tr>
 
504
</table>
 
505
<table width="100%" class="func-details" bgcolor="#e0e0e0"><tr><td>
 
506
 
 
507
<a name="expiresIn"></a>
 
508
<h3>expiresIn</h3>
 
509
This returns the number of seconds this association is still valid 
 
510
for, or <code>0</code> if the association is no longer valid.
 
511
<dl>
 
512
  <dt></dt>
 
513
  <dd>
 
514
    <dl>
 
515
      <dt><b>Get Method:</b></dt>
 
516
      <dd><span class="summary-sig"><a href="openid.association.Association-class.html#getExpiresIn" class="summary-sig-name"><code>getExpiresIn</code></a>(<span class=summary-sig-arg>self</span>,
 
517
          <span class=summary-sig-arg>now</span>)</span>
 
518
      </dd>
 
519
    </dl>
 
520
  </dd>
 
521
</dl></td></tr></table><br />
 
522
 
 
523
 
 
524
<!-- =========== START OF INSTANCE VARIABLE DETAILS =========== -->
 
525
<table class="details" border="1" cellpadding="3" cellspacing="0" width="100%" bgcolor="white">
 
526
<tr bgcolor="#70b0f0" class="details">
 
527
  <th colspan="2">Instance Variable Details</th></tr>
 
528
</table>
 
529
<table width="100%" class="var-details" bgcolor="#e0e0e0"><tr><td>
784
530
<a name="handle"></a>
785
 
<div>
786
 
<table class="details" border="1" cellpadding="3"
787
 
       cellspacing="0" width="100%" bgcolor="white">
788
 
<tr><td>
789
 
  <h3 class="epydoc">handle</h3>
790
 
  <br />This is the handle the server gave this association.
791
 
  <dl><dt></dt><dd>
792
 
    <dl><dt>Type:</dt>
793
 
      <dd><code>str</code></dd></dl>
794
 
  </dd></dl>
795
 
</td></tr></table>
796
 
</div>
 
531
<h3>handle</h3>
 
532
This is the handle the server gave this association.
 
533
<dl>
 
534
  <dt></dt>
 
535
  <dd>
 
536
    <dl>
 
537
      <dt><b>Type:</b></dt>
 
538
      <dd>
 
539
          <code>str</code>
 
540
 
 
541
      </dd>
 
542
    </dl>
 
543
  </dd>
 
544
</dl></td></tr></table>
 
545
<table width="100%" class="var-details" bgcolor="#e0e0e0"><tr><td>
797
546
<a name="secret"></a>
798
 
<div>
799
 
<table class="details" border="1" cellpadding="3"
800
 
       cellspacing="0" width="100%" bgcolor="white">
801
 
<tr><td>
802
 
  <h3 class="epydoc">secret</h3>
803
 
  <br />This is the shared secret the server generated for this 
804
 
  association.
805
 
  <dl><dt></dt><dd>
806
 
    <dl><dt>Type:</dt>
807
 
      <dd><code>str</code></dd></dl>
808
 
  </dd></dl>
809
 
</td></tr></table>
810
 
</div>
 
547
<h3>secret</h3>
 
548
This is the shared secret the server generated for this 
 
549
association.
 
550
<dl>
 
551
  <dt></dt>
 
552
  <dd>
 
553
    <dl>
 
554
      <dt><b>Type:</b></dt>
 
555
      <dd>
 
556
          <code>str</code>
 
557
 
 
558
      </dd>
 
559
    </dl>
 
560
  </dd>
 
561
</dl></td></tr></table>
 
562
<table width="100%" class="var-details" bgcolor="#e0e0e0"><tr><td>
811
563
<a name="issued"></a>
812
 
<div>
813
 
<table class="details" border="1" cellpadding="3"
814
 
       cellspacing="0" width="100%" bgcolor="white">
815
 
<tr><td>
816
 
  <h3 class="epydoc">issued</h3>
817
 
  <br />This is the time this association was issued, in seconds since 00:00 
818
 
  GMT, January 1, 1970.  (ie, a unix timestamp)
819
 
  <dl><dt></dt><dd>
820
 
    <dl><dt>Type:</dt>
821
 
      <dd><code>int</code></dd></dl>
822
 
  </dd></dl>
823
 
</td></tr></table>
824
 
</div>
 
564
<h3>issued</h3>
 
565
This is the time this association was issued, in seconds since 00:00 
 
566
GMT, January 1, 1970. (ie, a unix timestamp)
 
567
<dl>
 
568
  <dt></dt>
 
569
  <dd>
 
570
    <dl>
 
571
      <dt><b>Type:</b></dt>
 
572
      <dd>
 
573
          <code>int</code>
 
574
 
 
575
      </dd>
 
576
    </dl>
 
577
  </dd>
 
578
</dl></td></tr></table>
 
579
<table width="100%" class="var-details" bgcolor="#e0e0e0"><tr><td>
825
580
<a name="lifetime"></a>
826
 
<div>
827
 
<table class="details" border="1" cellpadding="3"
828
 
       cellspacing="0" width="100%" bgcolor="white">
829
 
<tr><td>
830
 
  <h3 class="epydoc">lifetime</h3>
831
 
  <br />This is the amount of time this association is good for, measured in 
832
 
  seconds since the association was issued.
833
 
  <dl><dt></dt><dd>
834
 
    <dl><dt>Type:</dt>
835
 
      <dd><code>int</code></dd></dl>
836
 
  </dd></dl>
837
 
</td></tr></table>
838
 
</div>
 
581
<h3>lifetime</h3>
 
582
This is the amount of time this association is good for, measured in 
 
583
seconds since the association was issued.
 
584
<dl>
 
585
  <dt></dt>
 
586
  <dd>
 
587
    <dl>
 
588
      <dt><b>Type:</b></dt>
 
589
      <dd>
 
590
          <code>int</code>
 
591
 
 
592
      </dd>
 
593
    </dl>
 
594
  </dd>
 
595
</dl></td></tr></table>
 
596
<table width="100%" class="var-details" bgcolor="#e0e0e0"><tr><td>
839
597
<a name="assoc_type"></a>
840
 
<div>
841
 
<table class="details" border="1" cellpadding="3"
842
 
       cellspacing="0" width="100%" bgcolor="white">
843
 
<tr><td>
844
 
  <h3 class="epydoc">assoc_type</h3>
845
 
  <br />This is the type of association this instance represents.  The only 
846
 
  valid value of this field at this time is <code>'HMAC-SHA1'</code>, but 
847
 
  new types may be defined in the future.
848
 
  <dl><dt></dt><dd>
849
 
    <dl><dt>Type:</dt>
850
 
      <dd><code>str</code></dd></dl>
851
 
  </dd></dl>
852
 
</td></tr></table>
853
 
</div>
 
598
<h3>assoc_type</h3>
 
599
This is the type of association this instance represents. The only 
 
600
valid value of this field at this time is <code>'HMAC-SHA1'</code>, but 
 
601
new types may be defined in the future.
 
602
<dl>
 
603
  <dt></dt>
 
604
  <dd>
 
605
    <dl>
 
606
      <dt><b>Type:</b></dt>
 
607
      <dd>
 
608
          <code>str</code>
 
609
 
 
610
      </dd>
 
611
    </dl>
 
612
  </dd>
 
613
</dl></td></tr></table>
854
614
<br />
855
 
<!-- ==================== PROPERTY DETAILS ==================== -->
856
 
<a name="section-PropertyDetails"></a>
857
 
<table class="summary" border="1" cellpadding="3"
858
 
       cellspacing="0" width="100%" bgcolor="white">
859
 
<tr bgcolor="#70b0f0" class="table-header">
860
 
  <td colspan="2" class="table-header">
861
 
    <table border="0" cellpadding="0" cellspacing="0" width="100%">
862
 
      <tr valign="top">
863
 
        <td align="left"><span class="table-header">Property Details</span></td>
864
 
        <td align="right" valign="top"
865
 
         ><span class="options">[<a href="#section-PropertyDetails"
866
 
         class="privatelink" onclick="toggle_private();"
867
 
         >hide private</a>]</span></td>
868
 
      </tr>
869
 
    </table>
870
 
  </td>
871
 
</tr>
 
615
 
 
616
 
 
617
<!-- =========== START OF CLASS VARIABLE DETAILS =========== -->
 
618
<table class="details" border="1" cellpadding="3" cellspacing="0" width="100%" bgcolor="white">
 
619
<tr bgcolor="#70b0f0" class="details">
 
620
  <th colspan="2">Class Variable Details</th></tr>
872
621
</table>
873
 
<a name="expiresIn"></a>
874
 
<div>
875
 
<table class="details" border="1" cellpadding="3"
876
 
       cellspacing="0" width="100%" bgcolor="white">
877
 
<tr><td>
878
 
  <h3 class="epydoc">expiresIn</h3>
879
 
  
880
 
  <dl><dt></dt><dd>
881
 
    <dl><dt>Get Method:</dt>
882
 
    <dd><span class="summary-sig"><a href="openid.association.Association-class.html#getExpiresIn" class="summary-sig-name">openid.association.Association.getExpiresIn</a>(<span class="summary-sig-arg">self</span>,
883
 
        <span class="summary-sig-arg">now</span>=<span class="summary-sig-default">None</span>)</span>
884
 
        - This returns the number of seconds this association is still valid
885
 
      for, or <code>0</code> if the association is no longer valid.
886
 
    </dd></dl>
887
 
  </dd></dl>
888
 
</td></tr></table>
889
 
</div>
 
622
<table width="100%" class="var-details" bgcolor="#e0e0e0"><tr><td>
 
623
<a name="assoc_keys"></a>
 
624
<h3>assoc_keys</h3>
 
625
<dl>
 
626
  <dt></dt>
 
627
  <dd>
 
628
    <dl>
 
629
      <dt><b>Type:</b></dt>
 
630
      <dd>
 
631
          <code>list</code>
 
632
 
 
633
      </dd>
 
634
<span title="['version', 'handle', 'secret', 'issued', 'lifetime', 'assoc_type']">      <dt><b>Value:</b></dt>
 
635
      <dd><table><tr><td>
 
636
<pre class="variable">
 
637
['version', 'handle', 'secret', 'issued', 'lifetime', 'assoc_type']    </pre>
 
638
        </td></tr></table></dd>
 
639
</span>    </dl>
 
640
  </dd>
 
641
</dl></td></tr></table>
890
642
<br />
891
 
<!-- ==================== NAVIGATION BAR ==================== -->
892
 
<table class="navbar" border="0" width="100%" cellpadding="0"
893
 
       bgcolor="#a0c0ff" cellspacing="0">
894
 
  <tr valign="middle">
895
 
  <!-- Home link -->
896
 
      <th>&nbsp;&nbsp;&nbsp;<a
897
 
        href="openid-module.html">Home</a>&nbsp;&nbsp;&nbsp;</th>
898
 
 
899
 
  <!-- Tree link -->
900
 
      <th>&nbsp;&nbsp;&nbsp;<a
901
 
        href="module-tree.html">Trees</a>&nbsp;&nbsp;&nbsp;</th>
902
 
 
903
 
  <!-- Index link -->
904
 
      <th>&nbsp;&nbsp;&nbsp;<a
905
 
        href="identifier-index.html">Indices</a>&nbsp;&nbsp;&nbsp;</th>
906
 
 
907
 
  <!-- Help link -->
908
 
      <th>&nbsp;&nbsp;&nbsp;<a
909
 
        href="help.html">Help</a>&nbsp;&nbsp;&nbsp;</th>
910
 
 
911
 
  <!-- Project homepage -->
912
 
      <th class="navbar" align="right" width="100%">
913
 
        <table border="0" cellpadding="0" cellspacing="0">
914
 
          <tr><th class="navbar" align="center"
915
 
            ><a class="navbar" target="_top" href="http://www.openidenabled.com/">Python-OpenID</a></th>
916
 
          </tr></table></th>
 
643
 
 
644
 
 
645
<!-- =========== START OF NAVBAR =========== -->
 
646
<table class="navbar" border="0" width="100%" cellpadding="0" bgcolor="#a0c0ff" cellspacing="0">
 
647
  <tr valign="center">
 
648
    <th class="navbar">&nbsp;&nbsp;&nbsp;<a class="navbar" href="openid-module.html">Home</a>&nbsp;&nbsp;&nbsp;</th>
 
649
    <th class="navbar">&nbsp;&nbsp;&nbsp;<a class="navbar" href="trees.html">Trees</a>&nbsp;&nbsp;&nbsp;</th>
 
650
    <th class="navbar">&nbsp;&nbsp;&nbsp;<a class="navbar" href="indices.html">Index</a>&nbsp;&nbsp;&nbsp;</th>
 
651
    <th class="navbar">&nbsp;&nbsp;&nbsp;<a class="navbar" href="help.html">Help</a>&nbsp;&nbsp;&nbsp;</th>
 
652
    <th class="navbar" align="right" width="100%">
 
653
      <table border="0" cellpadding="0" cellspacing="0">
 
654
      <tr><th class="navbar" align="center">
 
655
        <p class="nomargin">
 
656
          <a class="navbar" target="_top" href="http://www.openidenabled.com/">Python-OpenID</a>
 
657
      </p></th></tr></table>
 
658
    </th>
917
659
  </tr>
918
660
</table>
919
 
<table border="0" cellpadding="0" cellspacing="0" width="100%%">
 
661
 
 
662
<table border="0" cellpadding="0" cellspacing="0" width="100%">
920
663
  <tr>
921
 
    <td align="left" class="footer">Generated by Epydoc
922
 
        3.0alpha3 on Fri Dec  8 13:26:20 2006</td>
923
 
    <td align="right" class="footer">
924
 
      <a href="http://epydoc.sourceforge.net">http://epydoc.sourceforge.net</a>
925
 
    </td>
 
664
    <td align="left"><font size="-2">Generated by Epydoc 2.1 on Mon Sep 10 13:00:12 2007</font></td>
 
665
    <td align="right"><a href="http://epydoc.sourceforge.net"
 
666
                      ><font size="-2">http://epydoc.sf.net</font></a></td>
926
667
  </tr>
927
668
</table>
928
 
 
929
 
<script type="text/javascript">
930
 
  <!--
931
 
  // Private objects are initially displayed (because if
932
 
  // javascript is turned off then we want them to be
933
 
  // visible); but by default, we want to hide them.  So hide
934
 
  // them unless we have a cookie that says to show them.
935
 
  checkCookie()
936
 
  // -->
937
 
</script>
938
 
  
939
669
</body>
940
670
</html>