
    k7iF                     *    S SK Jr   " S S5      rS rg)    )
json_dumpsc                   8    \ rS rSrSrS rS	S jrS	S jrS rSr	g)
KeySet   z)This class represents a JSON Web Key Set.c                     Xl         g )Nkeys)selfr	   s     V/home/james-whalen/.local/lib/python3.13/site-packages/authlib/jose/rfc7517/key_set.py__init__KeySet.__init__   s    	    c           	      j    SU R                    Vs/ s H  o3R                  " U40 UD6PM     sn0$ s  snf )z5Represent this key as a dict of the JSON Web Key Set.r	   )r	   as_dict)r
   
is_privateparamsks       r   r   KeySet.as_dict
   s/    $))L)Q:88)LMMLs   0c                 >    U R                   " U40 UD6n[        U5      $ )z(Represent this key set as a JSON string.)r   r   )r
   r   r   objs       r   as_jsonKeySet.as_json   s    ll:00#r   c                 "   Uc(  [        U R                  5      S:X  a  U R                  S   $ U R                   Vs/ s H  o3R                  U:X  d  M  UPM     nnU(       a  [        [	        U40 UD65      nU(       a  US   $ [        S5      es  snf )zpFind the key matches the given kid value.

:param kid: A string of kid
:return: Key instance
:raise: ValueError
   r   zKey not found)lenr	   kidlist_filter_keys_by_params
ValueError)r
   r   r   keyr	   s        r   find_by_kidKeySet.find_by_kid   sz     ;3tyy>Q.99Q<#yy;yGGsNy;.t>v>?D7N)) <s   BBr   N)F)
__name__
__module____qualname____firstlineno____doc__r   r   r   r!   __static_attributes__ r   r   r   r      s    3N
*r   r   c              +   *  #    UR                  S5      nUR                  S5      nU  Hg  nUR                  R                  S5      nU(       a  U(       a  XR:w  a  M3  UR                  R                  S5      nU(       a  U(       a  Xc:w  a  Mc  Uv   Mi     g 7f)Nusealg)gettokens)r	   r   _use_algr    designed_usedesigned_algs          r   r   r   (   sn     ::eD::eDzz~~e,D\%9zz~~e,D\%9	 s   BBN)authlib.common.encodingr   r   r   r)   r   r   <module>r4      s    .!* !*Hr   