Sindbad~EG File Manager
�
'ٜg� � � � 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 d� de� Z G d� dee � Zy)� )�annotationsN)�datetime)�timezone� )�
base64_decode)�
base64_encode)�bytes_to_int)�int_to_bytes)�
want_bytes)�BadSignature)�BadTimeSignature)�SignatureExpired)�_TSerialized)�
Serializer)�Signerc �� � � e Zd ZdZd d�Zd
d�Zdd�Zej d d
d�� Z ej d dd�� Z d d� fd�
Z ddd�Z
� xZS )�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.
c �<