src/fedoidcmsg/__init__.py
def read_jwks_file(jwks_file):
    """
    Reads a file containing a JWKS and populates a
    :py:class:`oidcmsg.key_jar.KeyJar` from it.

    :param jwks_file: file name of the JWKS file 
    :return: A :py:class:`oidcmsg.key_jar.KeyJar` instance
    """
    _jwks = open(jwks_file, 'r').read()
    _kj = KeyJar()
    _kj.import_jwks(json.loads(_jwks), '')
    return _kj
def read_jwks_file(jwks_file):
    """
    Reads a file containing a JWKS and populates a
    :py:class:`oidcmsg.key_jar.KeyJar` from it.

    :param jwks_file: file name of the JWKS file 
    :return: A :py:class:`oidcmsg.key_jar.KeyJar` instance
    """
    _jwks = open(jwks_file, 'r').read()
    _kj = KeyJar()
    _kj.import_jwks(json.loads(_jwks), '')
    return _kj
Reads a file containing a JWKS and populates a
    :py:class:`oidcmsg.key_jar.KeyJar` from it.

    :param jwks_file: file name of the JWKS file 
    :return: A :py:class:`oidcmsg.key_jar.KeyJar` instance