LoginFlowV2.php 1.9 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970
  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. use OCP\DB\Types;
  10. /**
  11. * @method int getTimestamp()
  12. * @method void setTimestamp(int $timestamp)
  13. * @method int getStarted()
  14. * @method void setStarted(int $started)
  15. * @method string getPollToken()
  16. * @method void setPollToken(string $token)
  17. * @method string getLoginToken()
  18. * @method void setLoginToken(string $token)
  19. * @method string getPublicKey()
  20. * @method void setPublicKey(string $key)
  21. * @method string getPrivateKey()
  22. * @method void setPrivateKey(string $key)
  23. * @method string getClientName()
  24. * @method void setClientName(string $clientName)
  25. * @method string getLoginName()
  26. * @method void setLoginName(string $loginName)
  27. * @method string getServer()
  28. * @method void setServer(string $server)
  29. * @method string getAppPassword()
  30. * @method void setAppPassword(string $appPassword)
  31. */
  32. class LoginFlowV2 extends Entity {
  33. /** @var int */
  34. protected $timestamp;
  35. /** @var int */
  36. protected $started;
  37. /** @var string */
  38. protected $pollToken;
  39. /** @var string */
  40. protected $loginToken;
  41. /** @var string */
  42. protected $publicKey;
  43. /** @var string */
  44. protected $privateKey;
  45. /** @var string */
  46. protected $clientName;
  47. /** @var string */
  48. protected $loginName;
  49. /** @var string */
  50. protected $server;
  51. /** @var string */
  52. protected $appPassword;
  53. public function __construct() {
  54. $this->addType('timestamp', Types::INTEGER);
  55. $this->addType('started', Types::INTEGER);
  56. $this->addType('pollToken', 'string');
  57. $this->addType('loginToken', 'string');
  58. $this->addType('publicKey', 'string');
  59. $this->addType('privateKey', 'string');
  60. $this->addType('clientName', 'string');
  61. $this->addType('loginName', 'string');
  62. $this->addType('server', 'string');
  63. $this->addType('appPassword', 'string');
  64. }
  65. }