%PDF- <> %âãÏÓ endobj 2 0 obj <> endobj 3 0 obj <>/ExtGState<>/ProcSet[/PDF/Text/ImageB/ImageC/ImageI] >>/Annots[ 28 0 R 29 0 R] /MediaBox[ 0 0 595.5 842.25] /Contents 4 0 R/Group<>/Tabs/S>> endobj ºaâÚÎΞ-ÌE1ÍØÄ÷{òò2ÿ ÛÖ^ÔÀá TÎ{¦?§®¥kuµùÕ5sLOšuY>endobj 2 0 obj<>endobj 2 0 obj<>endobj 2 0 obj<>endobj 2 0 obj<> endobj 2 0 obj<>endobj 2 0 obj<>es 3 0 R>> endobj 2 0 obj<> ox[ 0.000000 0.000000 609.600000 935.600000]/Fi endobj 3 0 obj<> endobj 7 1 obj<>/ProcSet[/PDF/Text/ImageB/ImageC/ImageI]>>/Subtype/Form>> stream
a
�_g� � @ s� d dl mZ d dlmZ d dlZd dlZd dlmZ d dlm Z ddl
mZ ddl
mZ ddl
m
Z
dd l
mZ dd
l
mZ ddlmZ ddlmZ dd
lmZ ddlmZ ddlmZ ddlmZ G dd� de�ZG dd� dee �ZdS )� )�annotationsN)�datetime)�timezone� )�
base64_decode)�
base64_encode)�bytes_to_int)�int_to_bytes)�
want_bytes)�BadSignature)�BadTimeSignature)�SignatureExpired)�_TSerialized)�
Serializer)�Signerc s� e Zd ZdZdd�dd�Zddd�dd �Zd
dd�d
d�Zejd d
dddd�dd��Z ejd!d
dddd�dd��Z d"d
dddd�� fdd�
Z d#d
ddd�dd�Z
� ZS )$�TimestampSignerz�Works like the regular :class:`.Signer` but also records the time
of the signing and can be used to expire signatures. The
:meth:`unsign` method can raise :exc:`.SignatureExpired` if the
unsigning failed because the signature is expired.
�int)�returnc C s t t�� �S )zTReturns the current timestamp. The function must return an
integer.
)r �time)�self� r �?/vddos/python/lib/python3.9/site-packages/itsdangerous/timed.py�
get_timestamp s zTimestampSigner.get_timestampr )�tsr c C s t j|tjd�S )a Convert the timestamp from :meth:`get_timestamp` into an
aware :class`datetime.datetime` in UTC.
.. versionchanged:: 2.0
The timestamp is returned as a timezone-aware ``datetime``
in UTC rather than a naive ``datetime`` assumed to be UTC.
)�tz)r �
fromtimestampr �utc)r r r r r �timestamp_to_datetime# s z%TimestampSigner.timestamp_to_datetime�str | bytes�bytes)�valuer c C s@ t |�}tt| �� ��}t | j�}|| | }|| | �|� S )z:Signs the given string and also attaches time information.)r
r r r �sepZ
get_signature)r r � timestampr! r r r �sign- s
zTimestampSigner.signNF�
int | Nonezt.Literal[False])�signed_value�max_age�return_timestampr c C s d S �Nr �r r% r&