OwlCyberSecurity - MANAGER
Edit File: checkers.pyc
� `��ac @` s d Z d d l m Z m Z d d l Z d d l m Z m Z m Z d d l m Z d d l m Z d d l m Z d d l m Z m Z d e f d � � YZ d Z e e � d d d � � Y� Z e e � d e f d � � Y� Z e e � d d d � � Y� Z e Z d S( sf Basic credential checkers @var ANONYMOUS: An empty tuple used to represent the anonymous avatar ID. i ( t divisiont absolute_importN( t implementert Interfacet Attribute( t Logger( t defer( t failure( t errort credentialst ICredentialsCheckerc B` s# e Z d Z e d � Z d � Z RS( sE An object that can check sub-interfaces of L{ICredentials}. sN A list of sub-interfaces of L{ICredentials} which specifies which I may check.c C` s d S( s Validate credentials and produce an avatar ID. @param credentials: something which implements one of the interfaces in C{credentialInterfaces}. @return: a L{Deferred} which will fire with a L{bytes} that identifies an avatar, an empty tuple to specify an authenticated anonymous user (provided as L{twisted.cred.checkers.ANONYMOUS}) or fail with L{UnauthorizedLogin}. Alternatively, return the result itself. @see: L{twisted.cred.credentials} N( ( R ( ( sX /opt/cpanel-ccs/.develop/virtualenv/lib/python2.7/site-packages/twisted/cred/checkers.pyt requestAvatarId# t ( t __name__t __module__t __doc__R t credentialInterfacesR ( ( ( sX /opt/cpanel-ccs/.develop/virtualenv/lib/python2.7/site-packages/twisted/cred/checkers.pyR s t AllowAnonymousAccessc B` s# e Z d Z e j f Z d � Z RS( s� A credentials checker that unconditionally grants anonymous access. @cvar credentialInterfaces: Tuple containing L{IAnonymous}. c C` s t j t � S( s� Succeed with the L{ANONYMOUS} avatar ID. @return: L{Deferred} that fires with L{twisted.cred.checkers.ANONYMOUS} ( R t succeedt ANONYMOUS( t selfR ( ( sX /opt/cpanel-ccs/.develop/virtualenv/lib/python2.7/site-packages/twisted/cred/checkers.pyR K s ( R R R R t IAnonymousR R ( ( ( sX /opt/cpanel-ccs/.develop/virtualenv/lib/python2.7/site-packages/twisted/cred/checkers.pyR B s t'