U
    W¨+d  ã                   @   s4   d Z ddlmZ G dd„ deƒZG dd„ deƒZdS )zA
Defines an interface which all Auth handlers need to implement.
é    )ÚPluginc                   @   s   e Zd ZdS )ÚNotReadyToAuthenticateN)Ú__name__Ú
__module__Ú__qualname__© r   r   ú5/tmp/pip-unpacked-wheel-dlxw5sjy/boto/auth_handler.pyr      s   r   c                   @   s    e Zd Zg Zdd„ Zdd„ ZdS )ÚAuthHandlerc                 C   s   dS )aÄ  Constructs the handlers.
        :type host: string
        :param host: The host to which the request is being sent.

        :type config: boto.pyami.Config
        :param config: Boto configuration.

        :type provider: boto.provider.Provider
        :param provider: Provider details.

        Raises:
            NotReadyToAuthenticate: if this handler is not willing to
                authenticate for the given provider and config.
        Nr   )ÚselfÚhostÚconfigZproviderr   r   r   Ú__init__%   s    zAuthHandler.__init__c                 C   s   dS )z½Invoked to add authentication details to request.

        :type http_request: boto.connection.HTTPRequest
        :param http_request: HTTP request that needs to be authenticated.
        Nr   )r
   Úhttp_requestr   r   r   Úadd_auth6   s    zAuthHandler.add_authN)r   r   r   Z
capabilityr   r   r   r   r   r   r	   !   s   r	   N)Ú__doc__Zboto.pluginr   Ú	Exceptionr   r	   r   r   r   r   Ú<module>   s   