+
    Dfj^                     d    R t ^ RIt^ RIHt ^ RIHtHt ^ RIHt ]! ]4       ! R R4      4       t	R# )z
HTTP BASIC authentication.

@see: U{http://tools.ietf.org/html/rfc1945}
@see: U{http://tools.ietf.org/html/rfc2616}
@see: U{http://tools.ietf.org/html/rfc2617}
N)implementer)credentialserror)ICredentialFactoryc                   :   a  ] tR t^t o RtRtR tR tR tRt	V t
R# )BasicCredentialFactoryz
Credential Factory for HTTP Basic Authentication

@type authenticationRealm: L{bytes}
@ivar authenticationRealm: The HTTP authentication realm which will be issued in
    challenges.
s   basicc                    Wn         R # )NauthenticationRealm)selfr
   s   &&9/usr/lib/python3/dist-packages/twisted/web/_auth/basic.py__init__BasicCredentialFactory.__init__"   s    #6     c                    RV P                   /# )za
Return a challenge including the HTTP authentication realm with which
this factory was created.
realmr	   )r   requests   &&r   getChallenge#BasicCredentialFactory.getChallenge%   s    
 1122r   c                4    \         P                  ! VR,           4      pTP                  R^4      p\        T4      ^8X  d   \        P                  ! T!  # \        P                  ! R4      h  \         P                   d    \        P                  ! R4      hi ; i)zr
Parse the base64-encoded, colon-separated username and password into a
L{credentials.UsernamePassword} instance.
s   ===zInvalid credentials   :)	binascii
a2b_base64Errorr   LoginFailedsplitlenr   UsernamePassword)r   responser   credss   &&& r   decodeBasicCredentialFactory.decode,   s    
	;''6(9:E D!$u:?//77##$9:: ~~ 	;##$9::	;s   A+ +,Br	   N)__name__
__module____qualname____firstlineno____doc__schemer   r   r    __static_attributes____classdictcell__)__classdict__s   @r   r   r      s%      F73; ;r   r   )
r&   r   zope.interfacer   twisted.credr   r   twisted.web.iwebr   r    r   r   <module>r/      s7   
  & + /  #; #; !#;r   