src/fedoidcmsg/bundle.py
def as_keyjar(self):
        """
        Convert a key bundle into a KeyJar instance.
        
        :return: An :py:class:`oidcmsg.key_jar.KeyJar` instance 
        """
        kj = KeyJar()
        for iss, k in self.bundle.items():
            try:
                kj.issuer_keys[iss] = k.issuer_keys[iss]
            except KeyError:
                kj.issuer_keys[iss] = k.issuer_keys['']
        return kj
def as_keyjar(self):
        """
        Convert a key bundle into a KeyJar instance.
        
        :return: An :py:class:`oidcmsg.key_jar.KeyJar` instance 
        """
        kj = KeyJar()
        for iss, k in self.bundle.items():
            try:
                kj.issuer_keys[iss] = k.issuer_keys[iss]
            except KeyError:
                kj.issuer_keys[iss] = k.issuer_keys['']
        return kj
def as_keyjar ( self ) : kj = KeyJar ( ) for iss , k in self . bundle . items ( ) : try : kj . issuer_keys [ iss ] = k . issuer_keys [ iss ] except KeyError : kj . issuer_keys [ iss ] = k . issuer_keys [ '' ] return kj
Convert a key bundle into a KeyJar instance.
        
        :return: An :py:class:`oidcmsg.key_jar.KeyJar` instance
Convert a key bundle into a KeyJar instance . : return : An : py : class : oidcmsg . key_jar . KeyJar instance