
    ~h                        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y&)'    )AuthlibBaseErrorc                       e Zd Zy)	JoseErrorN)__name__
__module____qualname__     O/opt/mcp/mcp-sentiment/venv/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__   s    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 )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   r,   r,   $   s    IE2 2r
   r,   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__2   s     RS[1r
   r    r"   s   @r   r0   r0   /   s    <E2 2r
   r0   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   r5   r5   7   s     E7Kr
   r5   c                       e Zd ZdZdZy)MissingEncryptionAlgorithmErrormissing_encryption_algorithmzMissing 'enc' in headerNr7   r	   r
   r   r9   r9   <   s    *E+Kr
   r9   c                       e Zd ZdZdZy)#UnsupportedEncryptionAlgorithmError unsupported_encryption_algorithmz!Unsupported 'enc' value in headerNr7   r	   r
   r   r<   r<   A   s    .E5Kr
   r<   c                       e Zd ZdZdZy)$UnsupportedCompressionAlgorithmError!unsupported_compression_algorithmz!Unsupported 'zip' value in headerNr7   r	   r
   r   r?   r?   F   s    /E5Kr
   r?   c                       e Zd ZdZdZy)InvalidUseErrorinvalid_usez%Key 'use' is not valid for your usageNr7   r	   r
   r   rB   rB   K   s    E9Kr
   rB   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   s(    'wa0[1r
   r    r"   s   @r   rE   rE   P   s    E2 2r
   rE   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)   rJ   s      r   r   zMissingClaimError.__init__\   s!    !%0[1r
   r    r"   s   @r   rM   rM   Y   s    E2 2r
   rM   c                   "     e Zd ZdZ fdZ xZS )InsecureClaimErrorinsecure_claimc                 2    d| d}t         |   |       y )NzInsecure claim 'rH   r'   r)   rJ   s      r   r   zInsecureClaimError.__init__d   s!    (q1[1r
   r    r"   s   @r   rQ   rQ   a   s    E2 2r
   rQ   c                       e Zd ZdZdZy)ExpiredTokenErrorexpired_tokenzThe token is expiredNr7   r	   r
   r   rU   rU   i   s    E(Kr
   rU   c                       e Zd ZdZdZy)InvalidTokenErrorinvalid_tokenzThe token is not valid yetNr7   r	   r
   r   rX   rX   n   s    E.Kr
   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	  	)  I  $	 $	 2i 22y 22	 28y 8
,i ,
6) 6
69 6
:i :
2	 22	 22 2)	 )
/	 /r
   