Package openid :: Package server :: Module server :: Class SigningEncoder
[frames] | no frames]

Class SigningEncoder

source code

object --+    
         |    
   Encoder --+
             |
            SigningEncoder

I encode responses in to WebResponses, signing them when required.

Nested Classes

Inherited from Encoder: responseFactory

Instance Methods
 
__init__(self, signatory)
Create a SigningEncoder.
source code
WebResponse
encode(self, response)
Encode a response to a WebResponse, signing it first if appropriate.
source code

Inherited from object: __delattr__, __getattribute__, __hash__, __new__, __reduce__, __reduce_ex__, __repr__, __setattr__, __str__

Properties

Inherited from object: __class__

Method Details

__init__(self, signatory)
(Constructor)

source code 

Create a SigningEncoder.

Parameters:
Overrides: object.__init__

encode(self, response)

source code 

Encode a response to a WebResponse, signing it first if appropriate.

Returns: WebResponse
Raises:
Overrides: Encoder.encode