123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129 |
- <?php
- declare(strict_types=1);
- namespace OCP\Authentication\Token;
- use JsonSerializable;
- interface IToken extends JsonSerializable {
-
- public const TEMPORARY_TOKEN = 0;
-
- public const PERMANENT_TOKEN = 1;
-
- public const WIPE_TOKEN = 2;
-
- public const DO_NOT_REMEMBER = 0;
-
- public const REMEMBER = 1;
-
- public const SCOPE_FILESYSTEM = 'filesystem';
-
- public const SCOPE_SKIP_PASSWORD_VALIDATION = 'password-unconfirmable';
-
- public function getId(): int;
-
- public function getUID(): string;
-
- public function getLoginName(): string;
-
- public function getPassword(): ?string;
-
- public function getLastCheck(): int;
-
- public function setLastCheck(int $time): void;
-
- public function getScope(): string;
-
- public function getScopeAsArray(): array;
-
- public function setScope(array $scope): void;
-
- public function getName(): string;
-
- public function getRemember(): int;
-
- public function setToken(string $token): void;
-
- public function setPassword(string $password): void;
-
- public function setExpires(?int $expires): void;
- }
|