
    i                        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 G d& d'e      Zy())    )AuthlibBaseErrorc                       e Zd Zy)	JoseErrorN)__name__
__module____qualname__     ]/mnt/e/genesis-system/.venvs/browser-army/lib/python3.12/site-packages/authlib/jose/errors.pyr   r      s    r
   r   c                       e Zd ZdZy)DecodeErrordecode_errorNr   r   r   errorr	   r
   r   r   r      s    Er
   r   c                       e Zd ZdZy)MissingAlgorithmErrormissing_algorithmNr   r	   r
   r   r   r      s    Er
   r   c                       e Zd ZdZy)UnsupportedAlgorithmErrorunsupported_algorithmNr   r	   r
   r   r   r      s    #Er
   r   c                   "     e Zd ZdZ fdZ xZS )BadSignatureErrorbad_signaturec                 0    t         |           || _        y )N)super__init__result)selfr   	__class__s     r   r   zBadSignatureError.__init__   s    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                 0    d| }t         |   |       y NzInvalid Header Parameter Name: descriptionr   r   r   namer)   r   s      r   r   z(InvalidHeaderParameterNameError.__init__       7v>[1r
   r    r"   s   @r   r$   r$      s    +E2 2r
   r$   c                   "     e Zd ZdZ fdZ xZS )#InvalidCritHeaderParameterNameError"invalid_crit_header_parameter_namec                 0    d| }t         |   |       y r'   r*   r+   s      r   r   z,InvalidCritHeaderParameterNameError.__init__'   r-   r
   r    r"   s   @r   r/   r/   $   s    0E2 2r
   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         |   |       y )NzwIn key agreement with key wrapping mode ECDH-1PU algorithm only supports AES_CBC_HMAC_SHA2 family encryption algorithmsr(   r*   )r   r)   r   s     r   r   zAInvalidEncryptionAlgorithmForECDH1PUWithKeyWrappingError.__init__/   s     K 	 	[1r
   r    r"   s   @r   r3   r3   ,   s    IE2 2r
   r3   c                   "     e Zd ZdZ fdZ xZS ))InvalidAlgorithmForMultipleRecipientsMode.invalid_algorithm_for_multiple_recipients_modec                 0    | d}t         |   |       y )Nz5 algorithm cannot be used in multiple recipients moder(   r*   )r   algr)   r   s      r   r   z2InvalidAlgorithmForMultipleRecipientsMode.__init__:   s     RS[1r
   r    r"   s   @r   r7   r7   7   s    <E2 2r
   r7   c                       e Zd ZdZdZy)KeyMismatchErrorkey_mismatch_errorz#Key does not match to any recipientNr   r   r   r   r)   r	   r
   r   r<   r<   ?   s     E7Kr
   r<   c                       e Zd ZdZdZy)MissingEncryptionAlgorithmErrormissing_encryption_algorithmzMissing 'enc' in headerNr>   r	   r
   r   r@   r@   D   s    *E+Kr
   r@   c                       e Zd ZdZdZy)#UnsupportedEncryptionAlgorithmError unsupported_encryption_algorithmz!Unsupported 'enc' value in headerNr>   r	   r
   r   rC   rC   I   s    .E5Kr
   rC   c                       e Zd ZdZdZy)$UnsupportedCompressionAlgorithmError!unsupported_compression_algorithmz!Unsupported 'zip' value in headerNr>   r	   r
   r   rF   rF   N   s    /E5Kr
   rF   c                       e Zd ZdZdZy)InvalidUseErrorinvalid_usez%Key 'use' is not valid for your usageNr>   r	   r
   r   rI   rI   S   s    E9Kr
   rI   c                   "     e Zd ZdZ fdZ xZS )InvalidClaimErrorinvalid_claimc                 @    || _         d| d}t        | 	  |       y )NzInvalid claim ''r(   )
claim_namer   r   r   claimr)   r   s      r   r   zInvalidClaimError.__init__[   s(    'wa0[1r
   r    r"   s   @r   rL   rL   X   s    E2 2r
   rL   c                   "     e Zd ZdZ fdZ xZS )MissingClaimErrormissing_claimc                 2    d| d}t         |   |       y )Nz	Missing 'z' claimr(   r*   rQ   s      r   r   zMissingClaimError.__init__d   s!    !%0[1r
   r    r"   s   @r   rT   rT   a   s    E2 2r
   rT   c                   "     e Zd ZdZ fdZ xZS )InsecureClaimErrorinsecure_claimc                 2    d| d}t         |   |       y )NzInsecure claim 'rO   r(   r*   rQ   s      r   r   zInsecureClaimError.__init__l   s!    (q1[1r
   r    r"   s   @r   rX   rX   i   s    E2 2r
   rX   c                       e Zd ZdZdZy)ExpiredTokenErrorexpired_tokenzThe token is expiredNr>   r	   r
   r   r\   r\   q   s    E(Kr
   r\   c                       e Zd ZdZdZy)InvalidTokenErrorinvalid_tokenzThe token is not valid yetNr>   r	   r
   r   r_   r_   v   s    E.Kr
   r_   N)authlib.common.errorsr   r   r   r   r   r   r$   r/   r3   r7   r<   r@   rC   rF   rI   rL   rT   rX   r\   r_   r	   r
   r   <module>rb      s    2	  	)  I  $	 $	 2i 22) 22y 22	 28y 8
,i ,
6) 6
69 6
:i :
2	 22	 22 2)	 )
/	 /r
   