@@ -7,9 +7,7 @@ |
||
7 | 7 | use Mdanter\Ecc\Crypto\Key\PublicKeyInterface; |
8 | 8 | use Mdanter\Ecc\Math\GmpMathInterface; |
9 | 9 | use Mdanter\Ecc\Crypto\Signature\Signer; |
10 | -use Mdanter\Ecc\Curves\NistCurve; |
|
11 | 10 | use Mdanter\Ecc\Random\RandomGeneratorFactory; |
12 | -use Mdanter\Ecc\Random\RandomNumberGeneratorInterface; |
|
13 | 11 | use Mdanter\Ecc\Crypto\Signature\Signature; |
14 | 12 | use Mdanter\Ecc\Crypto\Signature\SignatureInterface; |
15 | 13 | use Mdanter\Ecc\Crypto\Signature\SignHasher; |
@@ -70,7 +70,7 @@ discard block |
||
70 | 70 | /** |
71 | 71 | * Get private key object from given certificate. |
72 | 72 | * |
73 | - * @param string $key |
|
73 | + * @param KeyManagerInterface $key |
|
74 | 74 | * @return PrivateKeyInterface |
75 | 75 | */ |
76 | 76 | public function getPrivateKey(KeyManagerInterface $key) |
@@ -81,7 +81,7 @@ discard block |
||
81 | 81 | /** |
82 | 82 | * Get public key object from given certificate. |
83 | 83 | * |
84 | - * @param string $key |
|
84 | + * @param KeyManagerInterface $key |
|
85 | 85 | * @return PublicKeyInterface |
86 | 86 | */ |
87 | 87 | public function getPublicKey(KeyManagerInterface $key) |
@@ -82,6 +82,7 @@ |
||
82 | 82 | |
83 | 83 | /** |
84 | 84 | * {@inheritdoc} |
85 | + * @param string $expected |
|
85 | 86 | */ |
86 | 87 | public function verifyToken( |
87 | 88 | $expected, |
@@ -10,6 +10,10 @@ |
||
10 | 10 | */ |
11 | 11 | class ClaimBuilderTest extends TestCase |
12 | 12 | { |
13 | + /** |
|
14 | + * @param string $name |
|
15 | + * @param string $value |
|
16 | + */ |
|
13 | 17 | private function callCollectClaimDirectly($name, $value) |
14 | 18 | { |
15 | 19 | $refl = new \ReflectionClass(ClaimBuilder::class); |
@@ -10,6 +10,10 @@ |
||
10 | 10 | */ |
11 | 11 | class JoseBuilderTest extends TestCase |
12 | 12 | { |
13 | + /** |
|
14 | + * @param string $name |
|
15 | + * @param string $value |
|
16 | + */ |
|
13 | 17 | private function callCollectJoseDirectly($name, $value) |
14 | 18 | { |
15 | 19 | $refl = new \ReflectionClass(JoseBuilder::class); |
@@ -5,7 +5,6 @@ |
||
5 | 5 | use PHPUnit\Framework\TestCase; |
6 | 6 | use Gandung\JWT\JWTFactory; |
7 | 7 | use Gandung\JWT\Validator\Validator; |
8 | -use Gandung\JWT\ValidatorInterface; |
|
9 | 8 | |
10 | 9 | /** |
11 | 10 | * @author Paulus Gandung Prakosa <[email protected]> |