Package twisted :: Package popsicle :: Module mailsicle :: Class MailsicleAuthorizer
[frames | no frames]

Class MailsicleAuthorizer

Accessor --+    
           |    
  Authorizer --+
               |
              MailsicleAuthorizer


A twisted.cred authorizer that's persistent in a Mailsicle database.

NOTE: only one MailsicleAuthorizer may be present in a given Mailsicle database.
Method Summary
  __init__(self, msicle, serviceCollection)
  addIdentity(self, identity)
Create an identity and make a callback when it has been created.
  getIdentityRequest(self, name)
Get an identity request, make the given callback when it's received.
    Inherited from Authorizer
  createIdentity(self, name)
Create an identity of an appropriate type for this Authorizer.
  get_application(self)
  getServiceNamed(self, name)
  removeIdentity(self, identityName)
  setApplication(self, app)
Set the application for this authorizer.
  setServiceCollection(self, collection)
Set the service collection for this authorizer.
    Inherited from Accessor
  __delattr__(self, k)
  __getattr__(self, k)
  __setattr__(self, k, v)
  reallyDel(self, k)
*actually* del self.k without incurring side-effects.
  reallySet(self, k, v)
*actually* set self.k to v without incurring side-effects.

Instance Variable Summary
    Inherited from Authorizer
_AbstractServiceCollection serviceCollection: The set of services that are using this authorizer.

Method Details

addIdentity(self, identity)

Create an identity and make a callback when it has been created.
Raises:
error.DuplicateIdentity - There is already an identity by this name.
Overrides:
twisted.cred.authorizer.Authorizer.addIdentity (inherited documentation)

getIdentityRequest(self, name)

Get an identity request, make the given callback when it's received.

Override this to provide a method for retrieving identities than the hash provided by default. The method should return a Deferred.

Note that this is asynchronous specifically to provide support for authenticating users from a database.
Overrides:
twisted.cred.authorizer.Authorizer.getIdentityRequest (inherited documentation)

Generated by Epydoc 2.0 on Sat Sep 13 04:20:41 2003 http://epydoc.sf.net