def set_token_policy(self, cid, cinfo):
        for ttyp in ['access_token', 'refresh_token']:
            pol = {}
            for rgtyp in ['response_type', 'grant_type']:
                try:
                    rtyp = cinfo[rgtyp]
                except KeyError:
                    pass
                else:
                    for typ in rtyp:
                        try:
                            pol[typ] = self.lifetime_policy[ttyp][typ]
                        except __HOLE__:
                            pass

            self.token_policy[ttyp][cid] = pol
dataset/ETHPy150Open rohe/pyoidc/src/oic/extension/provider.py/Provider.set_token_policy