ó
[³XMc           @   s   d  Z  d d l m Z d d l m Z d d l m Z d d l m Z d d l	 m
 Z
 d Z d e f d	     YZ e   Z d
 S(   s#   
Cred plugin for anonymous logins.
i˙˙˙˙(   t
   implements(   t   plugin(   t   AllowAnonymousAccess(   t   ICheckerFactory(   t
   IAnonymoussC   
This allows anonymous authentication for servers that support it.
t   AnonymousCheckerFactoryc           B   sE   e  Z d  Z e e e j  d Z e Z	 d Z
 e f Z d d  Z RS(   sI   
    Generates checkers that will authenticate an anonymous request.
    t	   anonymouss   No argstring required.t    c         C   s   t    S(   N(   R   (   t   selft	   argstring(    (    sB   /usr/lib/python2.7/dist-packages/twisted/plugins/cred_anonymous.pyt   generateChecker"   s    (   t   __name__t
   __module__t   __doc__R    R   R   t   IPlugint   authTypet   anonymousCheckerFactoryHelpt   authHelpt   argStringFormatR   t   credentialInterfacesR
   (    (    (    sB   /usr/lib/python2.7/dist-packages/twisted/plugins/cred_anonymous.pyR      s   	N(   R   t   zope.interfaceR    t   twistedR   t   twisted.cred.checkersR   t   twisted.cred.strcredR   t   twisted.cred.credentialsR   R   t   objectR   t   theAnonymousCheckerFactory(    (    (    sB   /usr/lib/python2.7/dist-packages/twisted/plugins/cred_anonymous.pyt   <module>   s   