def do_key_rollover(self, jwks, kid_template):

        kb = KeyBundle()
        kb.do_keys(jwks["keys"])

        kid = 0
        for k in kb.keys():
            if not k.kid:
                k.kid = kid_template % kid
                kid += 1
            self.kid[k.use][k.kty] = k.kid

            # find the old key for this key type and usage and mark that
            # as inactive
            for _kb in self.keyjar.issuer_keys[""]:
                for key in _kb.keys():
                    if key.kty == k.kty and key.use == k.use:
                        if k.kty == "EC":
                            if key.crv == k.crv:
                                key.inactive_since = time.time()
                        else:
                            key.inactive_since = time.time()

        self.keyjar.add_kb("", kb)

        if self.jwks_name:
            # print to the jwks file
            dump_jwks(self.keyjar[""], self.jwks_name)
Handle key roll-over by importing new keys and inactivating the
dataset/ETHPy150Open rohe/pyoidc/src/oic/oic/provider.py/Provider.do_key_rollover