@@ -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\JWK\Parameter; |
| 6 | 6 | |
@@ -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\JWK\Parameter; |
| 6 | 6 | |
@@ -14,21 +14,21 @@ |
||
| 14 | 14 | */ |
| 15 | 15 | class X509CertificateChainParameter extends JWKParameter |
| 16 | 16 | { |
| 17 | - use ArrayParameterValue; |
|
| 17 | + use ArrayParameterValue; |
|
| 18 | 18 | |
| 19 | - /** |
|
| 20 | - * Constructor. |
|
| 21 | - * |
|
| 22 | - * @param string ...$certs Base64 encoded DER certificates |
|
| 23 | - */ |
|
| 24 | - public function __construct(string ...$certs) |
|
| 25 | - { |
|
| 26 | - foreach ($certs as $cert) { |
|
| 27 | - if (!Base64::isValid($cert)) { |
|
| 28 | - throw new \UnexpectedValueException( |
|
| 29 | - 'Certificate must be base64 encoded.'); |
|
| 30 | - } |
|
| 31 | - } |
|
| 32 | - parent::__construct(self::PARAM_X509_CERTIFICATE_CHAIN, $certs); |
|
| 33 | - } |
|
| 19 | + /** |
|
| 20 | + * Constructor. |
|
| 21 | + * |
|
| 22 | + * @param string ...$certs Base64 encoded DER certificates |
|
| 23 | + */ |
|
| 24 | + public function __construct(string ...$certs) |
|
| 25 | + { |
|
| 26 | + foreach ($certs as $cert) { |
|
| 27 | + if (!Base64::isValid($cert)) { |
|
| 28 | + throw new \UnexpectedValueException( |
|
| 29 | + 'Certificate must be base64 encoded.'); |
|
| 30 | + } |
|
| 31 | + } |
|
| 32 | + parent::__construct(self::PARAM_X509_CERTIFICATE_CHAIN, $certs); |
|
| 33 | + } |
|
| 34 | 34 | } |
@@ -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\JWK\Parameter; |
| 6 | 6 | |
@@ -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\JWK\Parameter; |
| 6 | 6 | |
@@ -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\JWK\Parameter; |
| 6 | 6 | |
@@ -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\JWK\Parameter; |
| 6 | 6 | |
@@ -13,24 +13,24 @@ |
||
| 13 | 13 | */ |
| 14 | 14 | class KeyOperationsParameter extends JWKParameter |
| 15 | 15 | { |
| 16 | - use ArrayParameterValue; |
|
| 16 | + use ArrayParameterValue; |
|
| 17 | 17 | |
| 18 | - const OP_SIGN = 'sign'; |
|
| 19 | - const OP_VERIFY = 'verify'; |
|
| 20 | - const OP_ENCRYPT = 'encrypt'; |
|
| 21 | - const OP_DECRYPT = 'decrypt'; |
|
| 22 | - const OP_WRAP_KEY = 'wrapKey'; |
|
| 23 | - const OP_UNWRAP_KEY = 'unwrapKey'; |
|
| 24 | - const OP_DERIVE_KEY = 'deriveKey'; |
|
| 25 | - const OP_DERIVE_BITS = 'deriveBits'; |
|
| 18 | + const OP_SIGN = 'sign'; |
|
| 19 | + const OP_VERIFY = 'verify'; |
|
| 20 | + const OP_ENCRYPT = 'encrypt'; |
|
| 21 | + const OP_DECRYPT = 'decrypt'; |
|
| 22 | + const OP_WRAP_KEY = 'wrapKey'; |
|
| 23 | + const OP_UNWRAP_KEY = 'unwrapKey'; |
|
| 24 | + const OP_DERIVE_KEY = 'deriveKey'; |
|
| 25 | + const OP_DERIVE_BITS = 'deriveBits'; |
|
| 26 | 26 | |
| 27 | - /** |
|
| 28 | - * Constructor. |
|
| 29 | - * |
|
| 30 | - * @param string ...$ops Key operations |
|
| 31 | - */ |
|
| 32 | - public function __construct(string ...$ops) |
|
| 33 | - { |
|
| 34 | - parent::__construct(self::PARAM_KEY_OPERATIONS, $ops); |
|
| 35 | - } |
|
| 27 | + /** |
|
| 28 | + * Constructor. |
|
| 29 | + * |
|
| 30 | + * @param string ...$ops Key operations |
|
| 31 | + */ |
|
| 32 | + public function __construct(string ...$ops) |
|
| 33 | + { |
|
| 34 | + parent::__construct(self::PARAM_KEY_OPERATIONS, $ops); |
|
| 35 | + } |
|
| 36 | 36 | } |
@@ -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\JWK\Parameter; |
| 6 | 6 | |
@@ -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\JWK\Parameter; |
| 6 | 6 | |
@@ -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\JWK\Parameter; |
| 6 | 6 | |