def rest_api_context_factory(ca_certificate, control_credential):
 return _ControlServiceContextFactory(ca_certificate, control_credential, 'user-')

def rest_api_context_factory ( ca_certificate , control_credential ) : return _ControlServiceContextFactory ( ca_certificate , control_credential , 'user-' )
create a context factory that validates rest api clients connecting to the control service .