LoginFlowV2.php 1.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869
  1. <?php
  2. declare(strict_types=1);
  3. /**
  4. * SPDX-FileCopyrightText: 2019 Nextcloud GmbH and Nextcloud contributors
  5. * SPDX-License-Identifier: AGPL-3.0-or-later
  6. */
  7. namespace OC\Core\Db;
  8. use OCP\AppFramework\Db\Entity;
  9. /**
  10. * @method int getTimestamp()
  11. * @method void setTimestamp(int $timestamp)
  12. * @method int getStarted()
  13. * @method void setStarted(int $started)
  14. * @method string getPollToken()
  15. * @method void setPollToken(string $token)
  16. * @method string getLoginToken()
  17. * @method void setLoginToken(string $token)
  18. * @method string getPublicKey()
  19. * @method void setPublicKey(string $key)
  20. * @method string getPrivateKey()
  21. * @method void setPrivateKey(string $key)
  22. * @method string getClientName()
  23. * @method void setClientName(string $clientName)
  24. * @method string getLoginName()
  25. * @method void setLoginName(string $loginName)
  26. * @method string getServer()
  27. * @method void setServer(string $server)
  28. * @method string getAppPassword()
  29. * @method void setAppPassword(string $appPassword)
  30. */
  31. class LoginFlowV2 extends Entity {
  32. /** @var int */
  33. protected $timestamp;
  34. /** @var int */
  35. protected $started;
  36. /** @var string */
  37. protected $pollToken;
  38. /** @var string */
  39. protected $loginToken;
  40. /** @var string */
  41. protected $publicKey;
  42. /** @var string */
  43. protected $privateKey;
  44. /** @var string */
  45. protected $clientName;
  46. /** @var string */
  47. protected $loginName;
  48. /** @var string */
  49. protected $server;
  50. /** @var string */
  51. protected $appPassword;
  52. public function __construct() {
  53. $this->addType('timestamp', 'int');
  54. $this->addType('started', 'int');
  55. $this->addType('pollToken', 'string');
  56. $this->addType('loginToken', 'string');
  57. $this->addType('publicKey', 'string');
  58. $this->addType('privateKey', 'string');
  59. $this->addType('clientName', 'string');
  60. $this->addType('loginName', 'string');
  61. $this->addType('server', 'string');
  62. $this->addType('appPassword', 'string');
  63. }
  64. }