File: //lib/python3/dist-packages/twisted/web/_auth/__pycache__/basic.cpython-38.pyc
U
W[� � @ s` d Z ddlmZmZ ddlZddlmZ ddlmZm Z ddl
mZ ee�G dd� de��Z
dS ) 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}
� )�division�absolute_importN)�implementer)�credentials�error)�ICredentialFactoryc @ s, e Zd ZdZdZdd� Zdd� Zdd� Zd S )
�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 C s
|| _ d S )N��authenticationRealm)�selfr
� r �9/usr/lib/python3/dist-packages/twisted/web/_auth/basic.py�__init__# s zBasicCredentialFactory.__init__c C s
d| j iS )zy
Return a challenge including the HTTP authentication realm with which
this factory was created.
Zrealmr )r �requestr r r
�getChallenge'