Exemplo n.º 1
0
 def jsonrpc_key_share(self,
                       key_id,
                       trusted_user_id,
                       include_private=False,
                       timeout=10):
     return api.key_share(key_id=key_id,
                          trusted_user_id=trusted_user_id,
                          include_private=include_private,
                          timeout=timeout)
 def jsonrpc_key_share(self,
                       key_id,
                       trusted_global_id_or_idurl,
                       include_private=False,
                       timeout=10):
     return api.key_share(
         key_id=key_id,
         trusted_global_id_or_idurl=trusted_global_id_or_idurl,
         include_private=include_private,
         timeout=timeout)
Exemplo n.º 3
0
 def key_share_v1(self, request):
     data = _request_data(request,
                          mandatory_keys=[
                              'key_id',
                              'trusted_user',
                          ])
     return api.key_share(
         key_id=data['key_id'],
         trusted_global_id_or_idurl=data['trusted_user'],
         include_private=bool(
             data.get('include_private', '0') in [
                 '1',
                 'true',
             ]),
     )
Exemplo n.º 4
0
 def jsonrpc_key_share(self, key_id, idurl):
     return api.key_share(key_id, idurl)
Exemplo n.º 5
0
 def key_share_v1(self, request):
     data = _request_data(request, mandatory_keys=['key_id', 'trusted_user', ])
     return api.key_share(key_id=data['key_id'], trusted_global_id_or_idurl=data['trusted_user'])