1 | <?php |
||
15 | class RefreshTokens extends \Nip\Records\RecordManager implements RefreshTokenRepositoryInterface |
||
16 | { |
||
17 | /** |
||
18 | * Creates a new refresh token |
||
19 | * |
||
20 | * @return RefreshTokenEntityInterface |
||
21 | */ |
||
22 | public function getNewRefreshToken() |
||
26 | |||
27 | /** |
||
28 | * Create a new refresh token_name. |
||
29 | * |
||
30 | * @param RefreshTokenEntityInterface $refreshTokenEntity |
||
31 | * |
||
32 | * @throws UniqueTokenIdentifierConstraintViolationException |
||
33 | */ |
||
34 | public function persistNewRefreshToken(RefreshTokenEntityInterface $refreshTokenEntity) |
||
38 | |||
39 | /** |
||
40 | * Revoke the refresh token. |
||
41 | * |
||
42 | * @param string $tokenId |
||
43 | */ |
||
44 | public function revokeRefreshToken($tokenId) |
||
48 | |||
49 | /** |
||
50 | * Check if the refresh token has been revoked. |
||
51 | * |
||
52 | * @param string $tokenId |
||
53 | * |
||
54 | * @return bool Return true if this token has been revoked |
||
55 | */ |
||
56 | public function isRefreshTokenRevoked($tokenId) |
||
60 | |||
61 | /** @noinspection PhpMissingParentCallCommonInspection |
||
62 | * @inheritDoc |
||
63 | */ |
||
64 | protected function generateTable() |
||
68 | } |
||
69 |