
    Ld                     
   d dl mZ  G d de          Z G d de          Z G d de          Z G d d	e          Z G d
 de          Z G d de          Z G d de          Z G d de          Z	 G d de          Z
 G d de          Z G d de          Z G d de          Z G d de          Z G d de          Z G d de          Z G d  d!e          Z G d" d#e          Z G d$ d%e          Zd&S )'    )AuthlibBaseErrorc                       e Zd ZdS )	JoseErrorN)__name__
__module____qualname__     9F:\djangOuth\env\Lib\site-packages\authlib/jose/errors.pyr   r      s        Dr
   r   c                       e Zd ZdZdS )DecodeErrordecode_errorNr   r   r   errorr	   r
   r   r   r      s        EEEr
   r   c                       e Zd ZdZdS )MissingAlgorithmErrormissing_algorithmNr   r	   r
   r   r   r      s        EEEr
   r   c                       e Zd ZdZdS )UnsupportedAlgorithmErrorunsupported_algorithmNr   r	   r
   r   r   r      s        #EEEr
   r   c                   "     e Zd ZdZ fdZ xZS )BadSignatureErrorbad_signaturec                 d    t          t          |                                            || _        d S )N)superr   __init__result)selfr   	__class__s     r   r   zBadSignatureError.__init__   s+    &&//111r
   r   r   r   r   r   __classcell__r   s   @r   r   r      s=        E        r
   r   c                   "     e Zd ZdZ fdZ xZS )InvalidHeaderParameterNameErrorinvalid_header_parameter_namec                     d                     |          }t          t          |                               |           d S )Nz!Invalid Header Parameter Name: {}description)formatr   r$   r   )r   namer(   r   s      r   r   z(InvalidHeaderParameterNameError.__init__   sK    9@@FF-t44==# 	> 	% 	% 	% 	% 	%r
   r    r"   s   @r   r$   r$      s=        +E% % % % % % % % %r
   r$   c                   "     e Zd ZdZ fdZ xZS )8InvalidEncryptionAlgorithmForECDH1PUWithKeyWrappingError;invalid_encryption_algorithm_for_ECDH_1PU_with_key_wrappingc                 ^    d}t          t          |                               |           d S )NzwIn key agreement with key wrapping mode ECDH-1PU algorithm only supports AES_CBC_HMAC_SHA2 family encryption algorithmsr'   )r   r,   r   )r   r(   r   s     r   r   zAInvalidEncryptionAlgorithmForECDH1PUWithKeyWrappingError.__init__(   sA    UFMMVV# 	W 	% 	% 	% 	% 	%r
   r    r"   s   @r   r,   r,   %   s=        IE% % % % % % % % %r
   r,   c                   "     e Zd ZdZ fdZ xZS ))InvalidAlgorithmForMultipleRecipientsMode.invalid_algorithm_for_multiple_recipients_modec                     d                     |          }t          t          |                               |           d S )Nz7{} algorithm cannot be used in multiple recipients moder'   )r)   r   r0   r   )r   algr(   r   s      r   r   z2InvalidAlgorithmForMultipleRecipientsMode.__init__2   sM    OVVWZ[[7>>GG# 	H 	% 	% 	% 	% 	%r
   r    r"   s   @r   r0   r0   /   s=        <E% % % % % % % % %r
   r0   c                       e Zd ZdZdZdS )KeyMismatchErrorkey_mismatch_errorz#Key does not match to any recipientNr   r   r   r   r(   r	   r
   r   r5   r5   8   s         E7KKKr
   r5   c                       e Zd ZdZdZdS )MissingEncryptionAlgorithmErrormissing_encryption_algorithmzMissing "enc" in headerNr7   r	   r
   r   r9   r9   =   s        *E+KKKr
   r9   c                       e Zd ZdZdZdS )#UnsupportedEncryptionAlgorithmError unsupported_encryption_algorithmz!Unsupported "enc" value in headerNr7   r	   r
   r   r<   r<   B   s        .E5KKKr
   r<   c                       e Zd ZdZdZdS )$UnsupportedCompressionAlgorithmError!unsupported_compression_algorithmz!Unsupported "zip" value in headerNr7   r	   r
   r   r?   r?   G   s        /E5KKKr
   r?   c                       e Zd ZdZdZdS )InvalidUseErrorinvalid_usez%Key "use" is not valid for your usageNr7   r	   r
   r   rB   rB   L   s        E9KKKr
   rB   c                   "     e Zd ZdZ fdZ xZS )InvalidClaimErrorinvalid_claimc                     d                     |          }t          t          |                               |           d S )NzInvalid claim "{}"r'   )r)   r   rE   r   r   claimr(   r   s      r   r   zInvalidClaimError.__init__T   >    *11%88&&//K/HHHHHr
   r    r"   s   @r   rE   rE   Q   F        EI I I I I I I I Ir
   rE   c                   "     e Zd ZdZ fdZ xZS )MissingClaimErrormissing_claimc                     d                     |          }t          t          |                               |           d S )NzMissing "{}" claimr'   )r)   r   rM   r   rH   s      r   r   zMissingClaimError.__init__\   rJ   r
   r    r"   s   @r   rM   rM   Y   rK   r
   rM   c                   "     e Zd ZdZ fdZ xZS )InsecureClaimErrorinsecure_claimc                     d                     |          }t          t          |                               |           d S )NzInsecure claim "{}"r'   )r)   r   rQ   r   rH   s      r   r   zInsecureClaimError.__init__d   s>    +22599 $''00[0IIIIIr
   r    r"   s   @r   rQ   rQ   a   sF        EJ J J J J J J J Jr
   rQ   c                       e Zd ZdZdZdS )ExpiredTokenErrorexpired_tokenzThe token is expiredNr7   r	   r
   r   rU   rU   i   s        E(KKKr
   rU   c                       e Zd ZdZdZdS )InvalidTokenErrorinvalid_tokenzThe token is not valid yetNr7   r	   r
   r   rX   rX   n   s        E.KKKr
   rX   N)authlib.common.errorsr   r   r   r   r   r   r$   r,   r0   r5   r9   r<   r?   rB   rE   rM   rQ   rU   rX   r	   r
   r   <module>r[      s.   2 2 2 2 2 2	 	 	 	 	  	 	 	    )            I      $ $ $ $ $	 $ $ $    	   % % % % %i % % %% % % % %y % % %% % % % %	 % % %8 8 8 8 8y 8 8 8
, , , , ,i , , ,
6 6 6 6 6) 6 6 6
6 6 6 6 69 6 6 6
: : : : :i : : :
I I I I I	 I I II I I I I	 I I IJ J J J J J J J) ) ) ) )	 ) ) )
/ / / / /	 / / / / /r
   