Package flumotion :: Package common :: Module keycards :: Class Keycard
[hide private]

Class Keycard

source code

 twisted.spread.jelly.Jellyable --+        
                                  |        
twisted.spread.flavors.Serializable --+    
                                      |    
        twisted.spread.flavors.Copyable --+
                                          |
   twisted.spread.jelly.Unjellyable --+   |
                                      |   |
      twisted.spread.flavors.RemoteCopy --+
                                          |
                                         Keycard
Known Subclasses:

I am the base class for keycards which together with credentials are a serializable object used in authentication inside Flumotion.

Instance Methods [hide private]
 
__init__(self) source code
 
setDomain(self, domain)
Set the domain of the requester on the keycard.
source code
 
getData(self)
Return a dictionary of the viewable data on the keycard that can be used to identify the keycard.
source code
 
__repr__(self) source code

Inherited from twisted.spread.flavors.Copyable: getStateToCopy, getStateToCopyFor, getTypeToCopy, getTypeToCopyFor, jellyFor

Inherited from twisted.spread.flavors.Serializable: processUniqueID

Inherited from twisted.spread.jelly.Jellyable: __providedBy__, getStateFor

Inherited from twisted.spread.flavors.RemoteCopy: setCopyableState, unjellyFor

Inherited from twisted.spread.jelly.Unjellyable: setStateFor

Class Variables [hide private]
  __implemented__ = <implementedBy flumotion.common.keycards.Key...
  __provides__ = <zope.interface.declarations.ClassProvides obje...
Method Details [hide private]

setDomain(self, domain)

source code 

Set the domain of the requester on the keycard.

Parameters:
  • domain (string)

getData(self)

source code 

Return a dictionary of the viewable data on the keycard that can be used to identify the keycard. It doesn't include sensitive information though.

Subclasses should override to add additional information.


Class Variable Details [hide private]

__implemented__

Value:
<implementedBy flumotion.common.keycards.Keycard>

__provides__

Value:
<zope.interface.declarations.ClassProvides object at 0x862724c>