blob: 05110fbb4a887f19e7260aed72497af39db8c4d1 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
|
<?php
/** Interface UserManagerInterface
*
* @package DevCoder\Authentication\Core
*
*/
# namespace DevCoder\Authentication\Core;
#
# use DevCoder\Authentication\Token\UserTokenInterface;
# use DevCoder\Authentication\UserInterface;
interface UserManagerInterface
{
public function getUserToken(): ?UserTokenInterface;
public function hasUserToken(): bool;
public function createUserToken(UserInterface $user): UserTokenInterface;
public function logout(): void;
public function cryptPassword(string $plainPassword): string;
public function isPasswordValid(UserInterface $user, string $plainPassword): bool;
}
|