Пример #1
0
 /**
  * @param string $uid userid
  * @param string $password user password
  * @return bool
  */
 public function setupServerSide($uid, $password)
 {
     $this->keyManager->validateShareKey();
     // Check if user already has keys
     if (!$this->keyManager->userHasKeys($uid)) {
         return $this->keyManager->storeKeyPair($uid, $password, $this->crypt->createKeyPair());
     }
     return true;
 }
Пример #2
0
 /**
  * make sure that all system keys exists
  */
 public function setupSystem()
 {
     $this->keyManager->validateShareKey();
     $this->keyManager->validateMasterKey();
 }