'Register an authorization handler function.
Register a function which determines whether the credentials with a
given ID can have access to a named resource.'

def register_access_allowed_handler(self, credential_id, handler):

    assert callable(handler), 'Handler    is    not    callable'
    self._access_allowed_handlers[credential_id] = handler
