0x1949 Team - FAZEMRX - MANAGER
Edit File: api_jwk.cpython-310.pyc
o �E�`~ � @ sH d dl Z ddlmZ ddlmZmZmZ G dd� d�ZG dd� d�ZdS ) � N� )�get_default_algorithms)�InvalidKeyError� PyJWKError� PyJWKSetErrorc @ sV e Zd Zddd�Zeddd��Zeddd��Zedd � �Zed d� �Z edd � �Z dS )�PyJWKNc C s@ t � | _|| _| j�dd �}|std| j ��|s&t| jt�r&| j�dd �}|s�| j�dd �}|dkrW|dks9|s<d}nI|dkrCd }nB|d krJd}n;|dkrQd }n4td| ��|dkr^d}n'|dkred}n |dkr|srtd| j ��|dkryd}ntd| ��td| ��| j�|�| _| js�td| j ��| j� | j�| _ d S )N�ktyzkty is not found: %s�alg�crv�ECzP-256�ES256zP-384�ES384zP-521�ES512� secp256k1�ES256KzUnsupported crv: %s�RSA�RS256�oct�HS256�OKPzcrv is not found: %s�Ed25519�EdDSAzUnsupported kty: %sz&Unable to find a algorithm for key: %s)r �_algorithms� _jwk_data�getr � isinstance�dict� Algorithmr �from_jwk�key)�self�jwk_data� algorithmr r � r# �-/usr/lib/python3/dist-packages/jwt/api_jwk.py�__init__ sD zPyJWK.__init__c C s t | |�S �N)r )�objr"