forked from thephpleague/oauth2-server-bundle
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathClientInterface.php
56 lines (40 loc) · 1.2 KB
/
ClientInterface.php
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
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
<?php
declare(strict_types=1);
namespace League\Bundle\OAuth2ServerBundle\Model;
use League\Bundle\OAuth2ServerBundle\ValueObject\Grant;
use League\Bundle\OAuth2ServerBundle\ValueObject\RedirectUri;
use League\Bundle\OAuth2ServerBundle\ValueObject\Scope;
/**
* @method string getName()
*/
interface ClientInterface
{
public function getIdentifier(): string;
public function getSecret(): ?string;
/**
* @return list<RedirectUri>
*
* @psalm-mutation-free
*/
public function getRedirectUris(): array;
public function setRedirectUris(RedirectUri ...$redirectUris): self;
/**
* @return list<Grant>
*
* @psalm-mutation-free
*/
public function getGrants(): array;
public function setGrants(Grant ...$grants): self;
/**
* @return list<Scope>
*
* @psalm-mutation-free
*/
public function getScopes(): array;
public function setScopes(Scope ...$scopes): self;
public function isActive(): bool;
public function setActive(bool $active): self;
public function isConfidential(): bool;
public function isPlainTextPkceAllowed(): bool;
public function setAllowPlainTextPkce(bool $allowPlainTextPkce): self;
}