mirror of
https://github.com/nextcloud/server.git
synced 2024-08-07 15:07:13 +02:00
e07a190641
Signed-off-by: Andy Scherzinger <info@andy-scherzinger.de>
70 lines
1.9 KiB
PHP
70 lines
1.9 KiB
PHP
<?php
|
|
|
|
declare(strict_types=1);
|
|
|
|
/**
|
|
* SPDX-FileCopyrightText: 2019 Nextcloud GmbH and Nextcloud contributors
|
|
* SPDX-License-Identifier: AGPL-3.0-or-later
|
|
*/
|
|
namespace OC\Core\Db;
|
|
|
|
use OCP\AppFramework\Db\Entity;
|
|
|
|
/**
|
|
* @method int getTimestamp()
|
|
* @method void setTimestamp(int $timestamp)
|
|
* @method int getStarted()
|
|
* @method void setStarted(int $started)
|
|
* @method string getPollToken()
|
|
* @method void setPollToken(string $token)
|
|
* @method string getLoginToken()
|
|
* @method void setLoginToken(string $token)
|
|
* @method string getPublicKey()
|
|
* @method void setPublicKey(string $key)
|
|
* @method string getPrivateKey()
|
|
* @method void setPrivateKey(string $key)
|
|
* @method string getClientName()
|
|
* @method void setClientName(string $clientName)
|
|
* @method string getLoginName()
|
|
* @method void setLoginName(string $loginName)
|
|
* @method string getServer()
|
|
* @method void setServer(string $server)
|
|
* @method string getAppPassword()
|
|
* @method void setAppPassword(string $appPassword)
|
|
*/
|
|
class LoginFlowV2 extends Entity {
|
|
/** @var int */
|
|
protected $timestamp;
|
|
/** @var int */
|
|
protected $started;
|
|
/** @var string */
|
|
protected $pollToken;
|
|
/** @var string */
|
|
protected $loginToken;
|
|
/** @var string */
|
|
protected $publicKey;
|
|
/** @var string */
|
|
protected $privateKey;
|
|
/** @var string */
|
|
protected $clientName;
|
|
/** @var string */
|
|
protected $loginName;
|
|
/** @var string */
|
|
protected $server;
|
|
/** @var string */
|
|
protected $appPassword;
|
|
|
|
public function __construct() {
|
|
$this->addType('timestamp', 'int');
|
|
$this->addType('started', 'int');
|
|
$this->addType('pollToken', 'string');
|
|
$this->addType('loginToken', 'string');
|
|
$this->addType('publicKey', 'string');
|
|
$this->addType('privateKey', 'string');
|
|
$this->addType('clientName', 'string');
|
|
$this->addType('loginName', 'string');
|
|
$this->addType('server', 'string');
|
|
$this->addType('appPassword', 'string');
|
|
}
|
|
}
|