@@ -25,14 +25,14 @@ class KeyJar(object):
2525 """ A keyjar contains a number of KeyBundles sorted by owner/issuer """
2626
2727 def __init__ (
28- self ,
29- ca_certs = None ,
30- verify_ssl = True ,
31- keybundle_cls = KeyBundle ,
32- remove_after = 3600 ,
33- httpc = None ,
34- httpc_params = None ,
35- storage = None ,
28+ self ,
29+ ca_certs = None ,
30+ verify_ssl = True ,
31+ keybundle_cls = KeyBundle ,
32+ remove_after = 3600 ,
33+ httpc = None ,
34+ httpc_params = None ,
35+ storage = None ,
3636 ):
3737 """
3838 KeyJar init function
@@ -386,7 +386,7 @@ def export_jwks(self, private=False, issuer_id="", usage=None):
386386 k .serialize (private )
387387 for k in kb .keys ()
388388 if k .inactive_since == 0
389- and (usage is None or (hasattr (k , "use" ) and k .use == usage ))
389+ and (usage is None or (hasattr (k , "use" ) and k .use == usage ))
390390 ]
391391 )
392392 return {"keys" : keys }
@@ -472,14 +472,14 @@ def remove_outdated(self, when=0):
472472
473473 @deprecated_alias (issuer = "issuer_id" , owner = "issuer_id" )
474474 def _add_key (
475- self ,
476- keys ,
477- issuer_id ,
478- use ,
479- key_type = "" ,
480- kid = "" ,
481- no_kid_issuer = None ,
482- allow_missing_kid = False ,
475+ self ,
476+ keys ,
477+ issuer_id ,
478+ use ,
479+ key_type = "" ,
480+ kid = "" ,
481+ no_kid_issuer = None ,
482+ allow_missing_kid = False ,
483483 ):
484484
485485 _issuer = self ._get_issuer (issuer_id )
@@ -705,9 +705,7 @@ def rotate_keys(self, key_conf, kid_template="", issuer_id=""):
705705# =============================================================================
706706
707707
708- def build_keyjar (
709- key_conf , kid_template = "" , keyjar = None , issuer_id = "" , storage = None
710- ):
708+ def build_keyjar (key_conf , kid_template = "" , keyjar = None , issuer_id = "" , storage = None ):
711709 """
712710 Builds a :py:class:`oidcmsg.key_jar.KeyJar` instance or adds keys to
713711 an existing KeyJar based on a key specification.
@@ -764,12 +762,7 @@ def build_keyjar(
764762
765763@deprecated_alias (issuer = "issuer_id" , owner = "issuer_id" )
766764def init_key_jar (
767- public_path = "" ,
768- private_path = "" ,
769- key_defs = "" ,
770- issuer_id = "" ,
771- read_only = True ,
772- storage = None ,
765+ public_path = "" , private_path = "" , key_defs = "" , issuer_id = "" , read_only = True , storage = None ,
773766):
774767 """
775768 A number of cases here:
0 commit comments