§
    !”jÚ  ã                  óD   — d Z ddlmZ ddlmZmZmZ  G d„ d¦  «        ZdS )z,Credential definitions to access S3 service.é    )Úannotations)ÚdatetimeÚ	timedeltaÚtimezonec                  óš   — e Zd ZU dZded<   ded<   ded<   ded<   	 	 ddd„Zedd„¦   «         Zedd„¦   «         Zedd„¦   «         Z	dd„Z
d	S )ÚCredentialszJ
    Represents credentials access key, secret key and session token.
    ÚstrÚ_access_keyÚ_secret_keyú
str | NoneÚ_session_tokenúdatetime | NoneÚ_expirationNÚ
access_keyÚ
secret_keyÚsession_tokenÚ
expirationc                óú   — |st          d¦  «        ‚|st          d¦  «        ‚|| _        || _        || _        |r:|j        r3|                     t          j        ¦  «                             d ¬¦  «        }|| _	        d S )NzAccess key must not be emptyzSecret key must not be empty)Útzinfo)
Ú
ValueErrorr
   r   r   r   Ú
astimezoner   ÚutcÚreplacer   )Úselfr   r   r   r   s        úg/lsinfo/ai/hellotax_ai/base_platform/venv/lib/python3.11/site-packages/minio/credentials/credentials.pyÚ__init__zCredentials.__init__!   s•   € ð ð 	=ÝÐ;Ñ<Ô<Ð<àð 	=ÝÐ;Ñ<Ô<Ð<à%ˆÔØ%ˆÔØ+ˆÔØð 	˜*Ô+ð 	à×%Ò%¥h¤lÑ3Ô3×;Ò;À4Ð;ÑHÔHð ð &ˆÔÐÐó    Úreturnc                ó   — | j         S )zGet access key.)r
   ©r   s    r   r   zCredentials.access_key7   ó   € ð ÔÐr   c                ó   — | j         S )zGet secret key.)r   r    s    r   r   zCredentials.secret_key<   r!   r   c                ó   — | j         S )zGet session token.)r   r    s    r   r   zCredentials.session_tokenA   s   € ð Ô"Ð"r   Úboolc                ón   — | j         r-| j         t          j        ¦   «         t          d¬¦  «        z   k     ndS )z.Check whether this credentials expired or not.é
   )ÚsecondsF)r   r   Úutcnowr   r    s    r   Ú
is_expiredzCredentials.is_expiredF   s<   € ð Ôð+ˆDÔ¥¤Ñ 1Ô 1µIÀbÐ4IÑ4IÔ4IÑ IÒJÐJØ%*ð	
r   )NN)r   r	   r   r	   r   r   r   r   )r   r	   )r   r   )r   r$   )Ú__name__Ú
__module__Ú__qualname__Ú__doc__Ú__annotations__r   Úpropertyr   r   r   r)   © r   r   r   r      sç   € € € € € € ðð ð ÐÐÑØÐÐÑØÐÐÑØ Ð Ð Ñ ð %)Ø&*ð&ð &ð &ð &ð &ð, ð ð  ð  ñ „Xð ð ð ð  ð  ñ „Xð ð ð#ð #ð #ñ „Xð#ð
ð 
ð 
ð 
ð 
ð 
r   r   N)r-   Ú
__future__r   r   r   r   r   r0   r   r   ú<module>r2      so   ðð" 3Ð 2Ø "Ð "Ð "Ð "Ð "Ð "à 2Ð 2Ð 2Ð 2Ð 2Ð 2Ð 2Ð 2Ð 2Ð 2ð4
ð 4
ð 4
ð 4
ð 4
ñ 4
ô 4
ð 4
ð 4
ð 4
r   