Beispiel #1
0
    def get(self):
        user = yield get_user(self.request.tid, self.current_user.user_id,
                              self.request.language)

        user['cc'] = ''
        if self.current_user.cc:
            user['cc'] = GCE.export_private_key(self.current_user.cc)

        returnValue(user)
Beispiel #2
0
    def get(self):
        user = yield get_user(self.request.tid,
                              self.current_user.user_id,
                              self.request.language)

        user['cc'] = ''
        if self.current_user.cc:
            user['cc'] = GCE.export_private_key(self.current_user.cc)

        returnValue(user)
Beispiel #3
0
 def test_export_import_key(self):
     x1, _ = GCE.generate_keypair()
     x2 = GCE.export_private_key(x1)
     x3 = GCE.import_private_key(x2)
     self.assertEqual(x1, x3._private_key)