o
    ัฐiG	  ใ                   @   s4  G d d de ZG dd deZG dd deZG dd deZG dd	 d	eZG d
d deZG dd deZG dd deZG dd deZ	G dd deZ
G dd deZG dd deZG dd deZG dd deZG dd deZG dd deZG d d! d!eZG d"d# d#eZG d$d% d%eZd&S )'c                   @   ๓   e Zd ZdZdS )ฺ
PyJWTErrorz'
    Base class for all exceptions
    Nฉฺ__name__ฺ
__module__ฺ__qualname__ฺ__doc__ฉ r   r   ๚B/home/ubuntu/.local/lib/python3.10/site-packages/jwt/exceptions.pyr      s    r   c                   @   r   )ฺInvalidTokenErrorz1Base exception when ``decode()`` fails on a tokenNr   r   r   r   r	   r
   	   ๓    r
   c                   @   r   )ฺDecodeErrorzBRaised when a token cannot be decoded because it failed validationNr   r   r   r   r	   r      r   r   c                   @   r   )ฺInvalidSignatureErrorzXRaised when a token's signature doesn't match the one provided as part of
    the token.Nr   r   r   r   r	   r      ๓    r   c                   @   r   )ฺExpiredSignatureErrorzARaised when a token's ``exp`` claim indicates that it has expiredNr   r   r   r   r	   r      r   r   c                   @   r   )ฺInvalidAudienceErrorzZRaised when a token's ``aud`` claim does not match one of the expected
    audience valuesNr   r   r   r   r	   r   "   r   r   c                   @   r   )ฺInvalidIssuerErrorzFRaised when a token's ``iss`` claim does not match the expected issuerNr   r   r   r   r	   r   )   r   r   c                   @   r   )ฺInvalidIssuedAtErrorz2Raised when a token's ``iat`` claim is non-numericNr   r   r   r   r	   r   /   r   r   c                   @   r   )ฺImmatureSignatureErrorzNRaised when a token's ``nbf`` or ``iat`` claims represent a time in the futureNr   r   r   r   r	   r   5   r   r   c                   @   r   )ฺInvalidKeyErrorz9Raised when the specified key is not in the proper formatNr   r   r   r   r	   r   ;   r   r   c                   @   r   )ฺInvalidAlgorithmErrorz>Raised when the specified algorithm is not recognized by PyJWTNr   r   r   r   r	   r   A   r   r   c                   @   s0   e Zd ZdZdeddfddZdefddZdS )	ฺMissingRequiredClaimErrorzWRaised when a claim that is required to be present is not contained
    in the claimsetฺclaimฺreturnNc                 C   s
   || _ d S )Nฉr   )ฺselfr   r   r   r	   ฺ__init__K   s   
z"MissingRequiredClaimError.__init__c                 C   s   d| j  dS )NzToken is missing the "z" claimr   )r   r   r   r	   ฺ__str__N   s   z!MissingRequiredClaimError.__str__)r   r   r   r   ฺstrr   r   r   r   r   r	   r   G   s    r   c                   @   ๓   e Zd ZdS )ฺ
PyJWKErrorNฉr   r   r   r   r   r   r	   r   R   ๓    r   c                   @   r   )ฺMissingCryptographyErrorzZRaised if the algorithm requires ``cryptography`` to be installed and it is not available.Nr   r   r   r   r	   r"   V   r   r"   c                   @   r   )ฺPyJWKSetErrorNr    r   r   r   r	   r#   \   r!   r#   c                   @   r   )ฺPyJWKClientErrorNr    r   r   r   r	   r$   `   r!   r$   c                   @   r   )ฺPyJWKClientConnectionErrorNr    r   r   r   r	   r%   d   r!   r%   c                   @   r   )ฺInvalidSubjectErrorz]Raised when a token's ``sub`` claim is not a string or doesn't match the expected ``subject``Nr   r   r   r   r	   r&   h   r   r&   c                   @   r   )ฺInvalidJTIErrorz3Raised when a token's ``jti`` claim is not a stringNr   r   r   r   r	   r'   n   r   r'   N)ฺ	Exceptionr   r
   r   r   r   r   r   r   r   r   r   r   r   r"   r#   r$   r%   r&   r'   r   r   r   r	   ฺ<module>   s&    