Class w.c.s.a.AuthStateMachine(StateMachineMixin, Modal):

Part of wader.common.statem.auth View In Hierarchy

I authenticate against a device
Method __init__ Undocumented
Method __repr__ Undocumented
Method notify_auth_ok Called when authentication was successful
Method notify_auth_failure Called when we faced a failure
Method check_pin_cb Callbacked with check_pin's result
Method get_pin_status_cb Callbacked with get_pin_status's result
Method incorrect_pin_eb Executed when PIN is incorrect
Method incorrect_puk_eb Executed when the PUK is incorrect
Method incorrect_puk2_eb Executed when the PUK2 is incorrect
Method pin_required_eb Executed when SIM PIN is required
Method puk_required_eb Executed when PUK is required
Method puk2_required_eb Executed when PUK2 is required
Method sim_failure_eb Executed when there's a SIM failure, try again in a while
Method sim_busy_eb Executed when SIM is busy, try again in a while
Method sim_no_present_eb Executed when there's no SIM, errback it
Method start_auth Starts the authentication
Class get_pin_status Ask the PIN what's the PIN status
Class pin_needed_status PIN is needed, get it from the collaborator and try to authenticate.
Class puk_needed_status PUK and PIN are needed, get 'em from the collaborator and pray
Class puk2_needed_status PUK2 and PIN are needed, get 'em from the collaborator and pray

Inherited from StateMachineMixin:

Method on_notification_received Called whenever a notification is received
def __init__(self, device, factory, *args, **kwds):
Undocumented
def __repr__(self):
Undocumented
def _notify_auth_ok(self):
Wrapper to notify success, subclass me
def notify_auth_ok(self):
Called when authentication was successful
def notify_auth_failure(self, _failure):
Called when we faced a failure
def _get_pin_cb(self, pin):
collaborator.get_pin() callback
def _get_puk_cb(self, auth):
collaborator.get_puk() callback
def _get_puk2_cb(self, auth):
collaborator.get_puk2() callback
def check_pin_cb(self, resp):
Callbacked with check_pin's result
def get_pin_status_cb(self, enabled):
Callbacked with get_pin_status's result
def incorrect_pin_eb(self, failure):
Executed when PIN is incorrect
def incorrect_puk_eb(self, failure):
Executed when the PUK is incorrect
def incorrect_puk2_eb(self, failure):
Executed when the PUK2 is incorrect
def pin_required_eb(self, failure):
Executed when SIM PIN is required
def puk_required_eb(self, failure):
Executed when PUK is required
def puk2_required_eb(self, failure):
Executed when PUK2 is required
def sim_failure_eb(self, failure):
Executed when there's a SIM failure, try again in a while
def sim_busy_eb(self, failure):
Executed when SIM is busy, try again in a while
def sim_no_present_eb(self, failure):
Executed when there's no SIM, errback it
def start_auth(self):

Starts the authentication

Returns a deferred that will be callbacked if everything goes alright
Raiseswader.common.exceptions.AuthCancelledUser cancelled the auth
wader.common.exceptions.CMEErrorSIMFailureSIM unknown error
wader.common.exceptions.CMEErrorSIMNotInsertedSIM not inserted
wader.common.exceptions.DeviceLockedErrorDevice is locked
API Documentation for wader-core, generated by pydoctor at 2008-08-27 16:53:37.