示例#1
0
    def dump_jwks(self):
        """
        :return: A JWKS representation of the held keys
        """
        res = []
        for key in self._keys:
            res.append(b2s_conv(key.serialize()))

        return json.dumps({"keys": res})
示例#2
0
文件: jwk.py 项目: otakup0pe/pyjwkest
    def dump_jwks(self):
        """
        :return: A JWKS representation of the held keys
        """
        res = []
        for key in self._keys:
            res.append(b2s_conv(key.serialize()))

        return json.dumps({"keys": res})
示例#3
0
def test_b2s_conv_raise_exception_on_bad_value():
    with pytest.raises(ValueError):
        b2s_conv(object())
示例#4
0
def test_b2s_conv_raise_exception_on_bad_value():
    with pytest.raises(ValueError):
        b2s_conv(object())