Package flumotion :: Package common :: Module keycards :: Class Keycard
[show private | hide private]
[frames | no frames]

Class Keycard

Jellyable --+        
            |        
 Serializable --+    
                |    
         Copyable --+
                    |
  Unjellyable --+   |
                |   |
       RemoteCopy --+
                    |
                   Keycard

Known Subclasses:
KeycardGeneric, KeycardToken, KeycardUACPCC, KeycardUACPP, KeycardUASPCC

I am the base class for keycards which together with credentials are a serializable object used in authentication inside Flumotion.
Method Summary
  __init__(self)
  __repr__(self)
  getData(self)
Return a dictionary of the viewable data on the keycard that can be used to identify the keycard.
  setDomain(self, domain)
Set the domain of the requester on the keycard.
    Inherited from Copyable
  getStateToCopy(self)
Gather state to send when I am serialized for a peer.
  getStateToCopyFor(self, perspective)
Gather state to send when I am serialized for a particular perspective.
  getTypeToCopy(self)
Determine what type tag to send for me.
  getTypeToCopyFor(self, perspective)
Determine what type tag to send for me.
  jellyFor(self, jellier)
Assemble type tag and state to copy for this broker.
    Inherited from Serializable
  processUniqueID(self)
Return an ID which uniquely represents this object for this process.
    Inherited from Jellyable
  getStateFor(self, jellier)
    Inherited from RemoteCopy
  setCopyableState(self, state)
I will be invoked with the state to copy locally.
  unjellyFor(self, unjellier, jellyList)
Perform the inverse operation of Jellyable.jellyFor.
    Inherited from Unjellyable
  setStateFor(self, unjellier, state)

Class Variable Summary
Implements __implemented__ = <implementedBy flumotion.common.keycar...
ClassProvides __provides__ = <zope.interface.declarations.ClassProvide...
    Inherited from Jellyable
ClassProvides __providedBy__ = <zope.interface.declarations.ClassProvi...

Method Details

getData(self)

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.

setDomain(self, domain)

Set the domain of the requester on the keycard.
Parameters:
domain
           (type=string)

Class Variable Details

__implemented__

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

__provides__

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

Generated by Epydoc 2.1 on Fri Apr 6 10:13:40 2007 http://epydoc.sf.net