LoginFlowV2.php 2.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687
  1. <?php
  2. declare(strict_types=1);
  3. /**
  4. * @copyright Copyright (c) 2019, Roeland Jago Douma <roeland@famdouma.nl>
  5. *
  6. * @author Roeland Jago Douma <roeland@famdouma.nl>
  7. *
  8. * @license GNU AGPL version 3 or any later version
  9. *
  10. * This program is free software: you can redistribute it and/or modify
  11. * it under the terms of the GNU Affero General Public License as
  12. * published by the Free Software Foundation, either version 3 of the
  13. * License, or (at your option) any later version.
  14. *
  15. * This program is distributed in the hope that it will be useful,
  16. * but WITHOUT ANY WARRANTY; without even the implied warranty of
  17. * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  18. * GNU Affero General Public License for more details.
  19. *
  20. * You should have received a copy of the GNU Affero General Public License
  21. * along with this program. If not, see <http://www.gnu.org/licenses/>.
  22. *
  23. */
  24. namespace OC\Core\Db;
  25. use OCP\AppFramework\Db\Entity;
  26. /**
  27. * @method int getTimestamp()
  28. * @method void setTimestamp(int $timestamp)
  29. * @method int getStarted()
  30. * @method void setStarted(int $started)
  31. * @method string getPollToken()
  32. * @method void setPollToken(string $token)
  33. * @method string getLoginToken()
  34. * @method void setLoginToken(string $token)
  35. * @method string getPublicKey()
  36. * @method void setPublicKey(string $key)
  37. * @method string getPrivateKey()
  38. * @method void setPrivateKey(string $key)
  39. * @method string getClientName()
  40. * @method void setClientName(string $clientName)
  41. * @method string getLoginName()
  42. * @method void setLoginName(string $loginName)
  43. * @method string getServer()
  44. * @method void setServer(string $server)
  45. * @method string getAppPassword()
  46. * @method void setAppPassword(string $appPassword)
  47. */
  48. class LoginFlowV2 extends Entity {
  49. /** @var int */
  50. protected $timestamp;
  51. /** @var int */
  52. protected $started;
  53. /** @var string */
  54. protected $pollToken;
  55. /** @var string */
  56. protected $loginToken;
  57. /** @var string */
  58. protected $publicKey;
  59. /** @var string */
  60. protected $privateKey;
  61. /** @var string */
  62. protected $clientName;
  63. /** @var string */
  64. protected $loginName;
  65. /** @var string */
  66. protected $server;
  67. /** @var string */
  68. protected $appPassword;
  69. public function __construct() {
  70. $this->addType('timestamp', 'int');
  71. $this->addType('started', 'int');
  72. $this->addType('pollToken', 'string');
  73. $this->addType('loginToken', 'string');
  74. $this->addType('publicKey', 'string');
  75. $this->addType('privateKey', 'string');
  76. $this->addType('clientName', 'string');
  77. $this->addType('loginName', 'string');
  78. $this->addType('server', 'string');
  79. $this->addType('appPassword', 'string');
  80. }
  81. }