@@ -15,6 +15,9 @@ |
||
15 | 15 | |
16 | 16 | interface InitialAccessTokenRepository |
17 | 17 | { |
18 | + /** |
|
19 | + * @return void |
|
20 | + */ |
|
18 | 21 | public function save(InitialAccessToken $initialAccessToken); |
19 | 22 | |
20 | 23 | /** |
@@ -51,6 +51,9 @@ |
||
51 | 51 | return $handler->handle($request); |
52 | 52 | } |
53 | 53 | |
54 | + /** |
|
55 | + * @param ResourceServer|null $resourceServer |
|
56 | + */ |
|
54 | 57 | private function checkResourceServer(?ResourceServer $resourceServer): void |
55 | 58 | { |
56 | 59 | if (null === $resourceServer) { |
@@ -17,6 +17,9 @@ |
||
17 | 17 | { |
18 | 18 | public function name(): string; |
19 | 19 | |
20 | + /** |
|
21 | + * @return string|null |
|
22 | + */ |
|
20 | 23 | public function parent(): ?string; |
21 | 24 | |
22 | 25 | public function isParentMandatory(): bool; |
@@ -19,6 +19,9 @@ |
||
19 | 19 | { |
20 | 20 | public function hint(): string; |
21 | 21 | |
22 | + /** |
|
23 | + * @return \OAuth2Framework\Component\Core\AccessToken\AccessToken|null |
|
24 | + */ |
|
22 | 25 | public function find(string $token): ?Token; |
23 | 26 | |
24 | 27 | public function introspect(Token $token): array; |
@@ -15,5 +15,8 @@ |
||
15 | 15 | |
16 | 16 | interface AccessTokenHandler |
17 | 17 | { |
18 | + /** |
|
19 | + * @return AccessToken|null |
|
20 | + */ |
|
18 | 21 | public function find(AccessTokenId $token): ?AccessToken; |
19 | 22 | } |
@@ -15,5 +15,8 @@ |
||
15 | 15 | |
16 | 16 | interface TrustedIssuerRepository |
17 | 17 | { |
18 | + /** |
|
19 | + * @return void |
|
20 | + */ |
|
18 | 21 | public function find(string $trustedIssuer): ?TrustedIssuer; |
19 | 22 | } |
@@ -17,5 +17,8 @@ |
||
17 | 17 | |
18 | 18 | interface ResourceRepository |
19 | 19 | { |
20 | + /** |
|
21 | + * @return null|ResourceDescriptor |
|
22 | + */ |
|
20 | 23 | public function find(string $resource, Identifier $identifier): ?ResourceDescriptor; |
21 | 24 | } |
@@ -19,7 +19,13 @@ |
||
19 | 19 | { |
20 | 20 | public function hint(): string; |
21 | 21 | |
22 | + /** |
|
23 | + * @return Token |
|
24 | + */ |
|
22 | 25 | public function find(string $token): ?Token; |
23 | 26 | |
27 | + /** |
|
28 | + * @return void |
|
29 | + */ |
|
24 | 30 | public function revoke(Token $token): void; |
25 | 31 | } |
@@ -18,5 +18,8 @@ |
||
18 | 18 | |
19 | 19 | interface Checker |
20 | 20 | { |
21 | + /** |
|
22 | + * @return void |
|
23 | + */ |
|
21 | 24 | public function check(OAuth2Token $token, OAuth2 $configuration): void; |
22 | 25 | } |