@@ -13,13 +13,13 @@ |
||
13 | 13 | */ |
14 | 14 | class SubjectClaim extends RegisteredClaim |
15 | 15 | { |
16 | - /** |
|
17 | - * Constructor. |
|
18 | - * |
|
19 | - * @param string $subject Subject |
|
20 | - */ |
|
21 | - public function __construct(string $subject) |
|
22 | - { |
|
23 | - parent::__construct(self::NAME_SUBJECT, $subject, new EqualsValidator()); |
|
24 | - } |
|
16 | + /** |
|
17 | + * Constructor. |
|
18 | + * |
|
19 | + * @param string $subject Subject |
|
20 | + */ |
|
21 | + public function __construct(string $subject) |
|
22 | + { |
|
23 | + parent::__construct(self::NAME_SUBJECT, $subject, new EqualsValidator()); |
|
24 | + } |
|
25 | 25 | } |
@@ -1,6 +1,6 @@ |
||
1 | 1 | <?php |
2 | 2 | |
3 | -declare(strict_types = 1); |
|
3 | +declare(strict_types=1); |
|
4 | 4 | |
5 | 5 | namespace Sop\JWX\JWT\Claim; |
6 | 6 |
@@ -9,10 +9,10 @@ |
||
9 | 9 | */ |
10 | 10 | interface EncryptionAlgorithmParameterValue |
11 | 11 | { |
12 | - /** |
|
13 | - * Get algorithm type as an 'enc' parameter value. |
|
14 | - * |
|
15 | - * @return string |
|
16 | - */ |
|
17 | - public function encryptionAlgorithmParamValue(): string; |
|
12 | + /** |
|
13 | + * Get algorithm type as an 'enc' parameter value. |
|
14 | + * |
|
15 | + * @return string |
|
16 | + */ |
|
17 | + public function encryptionAlgorithmParamValue(): string; |
|
18 | 18 | } |
@@ -1,6 +1,6 @@ |
||
1 | 1 | <?php |
2 | 2 | |
3 | -declare(strict_types = 1); |
|
3 | +declare(strict_types=1); |
|
4 | 4 | |
5 | 5 | namespace Sop\JWX\JWT\Parameter; |
6 | 6 |
@@ -13,15 +13,15 @@ |
||
13 | 13 | */ |
14 | 14 | class X509URLParameter extends JWTParameter |
15 | 15 | { |
16 | - use StringParameterValue; |
|
16 | + use StringParameterValue; |
|
17 | 17 | |
18 | - /** |
|
19 | - * Constructor. |
|
20 | - * |
|
21 | - * @param string $uri |
|
22 | - */ |
|
23 | - public function __construct(string $uri) |
|
24 | - { |
|
25 | - parent::__construct(self::PARAM_X509_URL, $uri); |
|
26 | - } |
|
18 | + /** |
|
19 | + * Constructor. |
|
20 | + * |
|
21 | + * @param string $uri |
|
22 | + */ |
|
23 | + public function __construct(string $uri) |
|
24 | + { |
|
25 | + parent::__construct(self::PARAM_X509_URL, $uri); |
|
26 | + } |
|
27 | 27 | } |
@@ -1,6 +1,6 @@ |
||
1 | 1 | <?php |
2 | 2 | |
3 | -declare(strict_types = 1); |
|
3 | +declare(strict_types=1); |
|
4 | 4 | |
5 | 5 | namespace Sop\JWX\JWT\Parameter; |
6 | 6 |
@@ -13,26 +13,26 @@ |
||
13 | 13 | */ |
14 | 14 | class InitializationVectorParameter extends JWTParameter |
15 | 15 | { |
16 | - use Base64URLValue; |
|
16 | + use Base64URLValue; |
|
17 | 17 | |
18 | - /** |
|
19 | - * Constructor. |
|
20 | - * |
|
21 | - * @param string $iv Base64url encoded initialization vector |
|
22 | - */ |
|
23 | - public function __construct(string $iv) |
|
24 | - { |
|
25 | - $this->_validateEncoding($iv); |
|
26 | - parent::__construct(self::PARAM_INITIALIZATION_VECTOR, $iv); |
|
27 | - } |
|
18 | + /** |
|
19 | + * Constructor. |
|
20 | + * |
|
21 | + * @param string $iv Base64url encoded initialization vector |
|
22 | + */ |
|
23 | + public function __construct(string $iv) |
|
24 | + { |
|
25 | + $this->_validateEncoding($iv); |
|
26 | + parent::__construct(self::PARAM_INITIALIZATION_VECTOR, $iv); |
|
27 | + } |
|
28 | 28 | |
29 | - /** |
|
30 | - * Get the initialization vector. |
|
31 | - * |
|
32 | - * @return string |
|
33 | - */ |
|
34 | - public function initializationVector(): string |
|
35 | - { |
|
36 | - return $this->string(); |
|
37 | - } |
|
29 | + /** |
|
30 | + * Get the initialization vector. |
|
31 | + * |
|
32 | + * @return string |
|
33 | + */ |
|
34 | + public function initializationVector(): string |
|
35 | + { |
|
36 | + return $this->string(); |
|
37 | + } |
|
38 | 38 | } |
@@ -1,6 +1,6 @@ |
||
1 | 1 | <?php |
2 | 2 | |
3 | -declare(strict_types = 1); |
|
3 | +declare(strict_types=1); |
|
4 | 4 | |
5 | 5 | namespace Sop\JWX\JWT\Parameter; |
6 | 6 |
@@ -13,15 +13,15 @@ |
||
13 | 13 | */ |
14 | 14 | class KeyIDParameter extends JWTParameter |
15 | 15 | { |
16 | - use StringParameterValue; |
|
16 | + use StringParameterValue; |
|
17 | 17 | |
18 | - /** |
|
19 | - * Constructor. |
|
20 | - * |
|
21 | - * @param string $id |
|
22 | - */ |
|
23 | - public function __construct(string $id) |
|
24 | - { |
|
25 | - parent::__construct(self::PARAM_KEY_ID, $id); |
|
26 | - } |
|
18 | + /** |
|
19 | + * Constructor. |
|
20 | + * |
|
21 | + * @param string $id |
|
22 | + */ |
|
23 | + public function __construct(string $id) |
|
24 | + { |
|
25 | + parent::__construct(self::PARAM_KEY_ID, $id); |
|
26 | + } |
|
27 | 27 | } |
@@ -1,6 +1,6 @@ |
||
1 | 1 | <?php |
2 | 2 | |
3 | -declare(strict_types = 1); |
|
3 | +declare(strict_types=1); |
|
4 | 4 | |
5 | 5 | namespace Sop\JWX\JWT\Parameter; |
6 | 6 |
@@ -9,10 +9,10 @@ |
||
9 | 9 | */ |
10 | 10 | interface CompressionAlgorithmParameterValue |
11 | 11 | { |
12 | - /** |
|
13 | - * Get compression algorithm type as an 'zip' parameter value. |
|
14 | - * |
|
15 | - * @return string |
|
16 | - */ |
|
17 | - public function compressionParamValue(): string; |
|
12 | + /** |
|
13 | + * Get compression algorithm type as an 'zip' parameter value. |
|
14 | + * |
|
15 | + * @return string |
|
16 | + */ |
|
17 | + public function compressionParamValue(): string; |
|
18 | 18 | } |
@@ -1,6 +1,6 @@ |
||
1 | 1 | <?php |
2 | 2 | |
3 | -declare(strict_types = 1); |
|
3 | +declare(strict_types=1); |
|
4 | 4 | |
5 | 5 | namespace Sop\JWX\JWT\Parameter; |
6 | 6 |
@@ -13,17 +13,17 @@ |
||
13 | 13 | */ |
14 | 14 | class X509CertificateSHA1ThumbprintParameter extends JWTParameter |
15 | 15 | { |
16 | - use Base64URLValue; |
|
16 | + use Base64URLValue; |
|
17 | 17 | |
18 | - /** |
|
19 | - * Constructor. |
|
20 | - * |
|
21 | - * @param string $thumbprint Base64url encoded SHA-1 hash |
|
22 | - */ |
|
23 | - public function __construct(string $thumbprint) |
|
24 | - { |
|
25 | - $this->_validateEncoding($thumbprint); |
|
26 | - parent::__construct(self::PARAM_X509_CERTIFICATE_SHA1_THUMBPRINT, |
|
27 | - $thumbprint); |
|
28 | - } |
|
18 | + /** |
|
19 | + * Constructor. |
|
20 | + * |
|
21 | + * @param string $thumbprint Base64url encoded SHA-1 hash |
|
22 | + */ |
|
23 | + public function __construct(string $thumbprint) |
|
24 | + { |
|
25 | + $this->_validateEncoding($thumbprint); |
|
26 | + parent::__construct(self::PARAM_X509_CERTIFICATE_SHA1_THUMBPRINT, |
|
27 | + $thumbprint); |
|
28 | + } |
|
29 | 29 | } |
@@ -1,6 +1,6 @@ |
||
1 | 1 | <?php |
2 | 2 | |
3 | -declare(strict_types = 1); |
|
3 | +declare(strict_types=1); |
|
4 | 4 | |
5 | 5 | namespace Sop\JWX\JWT\Parameter; |
6 | 6 |
@@ -9,10 +9,10 @@ |
||
9 | 9 | */ |
10 | 10 | interface AlgorithmParameterValue |
11 | 11 | { |
12 | - /** |
|
13 | - * Get algorithm type as an 'alg' parameter value. |
|
14 | - * |
|
15 | - * @return string |
|
16 | - */ |
|
17 | - public function algorithmParamValue(): string; |
|
12 | + /** |
|
13 | + * Get algorithm type as an 'alg' parameter value. |
|
14 | + * |
|
15 | + * @return string |
|
16 | + */ |
|
17 | + public function algorithmParamValue(): string; |
|
18 | 18 | } |
@@ -1,6 +1,6 @@ |
||
1 | 1 | <?php |
2 | 2 | |
3 | -declare(strict_types = 1); |
|
3 | +declare(strict_types=1); |
|
4 | 4 | |
5 | 5 | namespace Sop\JWX\JWT\Parameter; |
6 | 6 |
@@ -13,17 +13,17 @@ |
||
13 | 13 | */ |
14 | 14 | class X509CertificateSHA256ThumbprintParameter extends JWTParameter |
15 | 15 | { |
16 | - use Base64URLValue; |
|
16 | + use Base64URLValue; |
|
17 | 17 | |
18 | - /** |
|
19 | - * Constructor. |
|
20 | - * |
|
21 | - * @param string $thumbprint Base64url encoded SHA-256 hash |
|
22 | - */ |
|
23 | - public function __construct(string $thumbprint) |
|
24 | - { |
|
25 | - $this->_validateEncoding($thumbprint); |
|
26 | - parent::__construct(self::PARAM_X509_CERTIFICATE_SHA256_THUMBPRINT, |
|
27 | - $thumbprint); |
|
28 | - } |
|
18 | + /** |
|
19 | + * Constructor. |
|
20 | + * |
|
21 | + * @param string $thumbprint Base64url encoded SHA-256 hash |
|
22 | + */ |
|
23 | + public function __construct(string $thumbprint) |
|
24 | + { |
|
25 | + $this->_validateEncoding($thumbprint); |
|
26 | + parent::__construct(self::PARAM_X509_CERTIFICATE_SHA256_THUMBPRINT, |
|
27 | + $thumbprint); |
|
28 | + } |
|
29 | 29 | } |
@@ -1,6 +1,6 @@ |
||
1 | 1 | <?php |
2 | 2 | |
3 | -declare(strict_types = 1); |
|
3 | +declare(strict_types=1); |
|
4 | 4 | |
5 | 5 | namespace Sop\JWX\JWT\Parameter; |
6 | 6 |