@@ -11,16 +11,16 @@ |
||
11 | 11 | */ |
12 | 12 | class ModulusParameter extends JWKParameter |
13 | 13 | { |
14 | - use Base64UIntValue; |
|
14 | + use Base64UIntValue; |
|
15 | 15 | |
16 | - /** |
|
17 | - * Constructor. |
|
18 | - * |
|
19 | - * @param string $n Modulus in base64urlUInt encoding |
|
20 | - */ |
|
21 | - public function __construct($n) |
|
22 | - { |
|
23 | - $this->_validateEncoding($n); |
|
24 | - parent::__construct(self::PARAM_MODULUS, $n); |
|
25 | - } |
|
16 | + /** |
|
17 | + * Constructor. |
|
18 | + * |
|
19 | + * @param string $n Modulus in base64urlUInt encoding |
|
20 | + */ |
|
21 | + public function __construct($n) |
|
22 | + { |
|
23 | + $this->_validateEncoding($n); |
|
24 | + parent::__construct(self::PARAM_MODULUS, $n); |
|
25 | + } |
|
26 | 26 | } |
@@ -11,15 +11,15 @@ |
||
11 | 11 | */ |
12 | 12 | class KeyIDParameter extends JWKParameter |
13 | 13 | { |
14 | - use StringParameterValue; |
|
14 | + use StringParameterValue; |
|
15 | 15 | |
16 | - /** |
|
17 | - * Constructor. |
|
18 | - * |
|
19 | - * @param string $id Key ID |
|
20 | - */ |
|
21 | - public function __construct($id) |
|
22 | - { |
|
23 | - parent::__construct(self::PARAM_KEY_ID, $id); |
|
24 | - } |
|
16 | + /** |
|
17 | + * Constructor. |
|
18 | + * |
|
19 | + * @param string $id Key ID |
|
20 | + */ |
|
21 | + public function __construct($id) |
|
22 | + { |
|
23 | + parent::__construct(self::PARAM_KEY_ID, $id); |
|
24 | + } |
|
25 | 25 | } |
@@ -9,13 +9,13 @@ |
||
9 | 9 | */ |
10 | 10 | abstract class CoordinateParameter extends JWKParameter |
11 | 11 | { |
12 | - /** |
|
13 | - * Get coordinate in octet string representation. |
|
14 | - * |
|
15 | - * @return string |
|
16 | - */ |
|
17 | - public function coordinateOctets() |
|
18 | - { |
|
19 | - return Base64::urlDecode($this->_value); |
|
20 | - } |
|
12 | + /** |
|
13 | + * Get coordinate in octet string representation. |
|
14 | + * |
|
15 | + * @return string |
|
16 | + */ |
|
17 | + public function coordinateOctets() |
|
18 | + { |
|
19 | + return Base64::urlDecode($this->_value); |
|
20 | + } |
|
21 | 21 | } |
@@ -11,16 +11,16 @@ |
||
11 | 11 | */ |
12 | 12 | class FirstCRTCoefficientParameter extends JWKParameter |
13 | 13 | { |
14 | - use Base64UIntValue; |
|
14 | + use Base64UIntValue; |
|
15 | 15 | |
16 | - /** |
|
17 | - * Constructor. |
|
18 | - * |
|
19 | - * @param string $qi First CRT coefficient in base64urlUInt encoding |
|
20 | - */ |
|
21 | - public function __construct($qi) |
|
22 | - { |
|
23 | - $this->_validateEncoding($qi); |
|
24 | - parent::__construct(self::PARAM_FIRST_CRT_COEFFICIENT, $qi); |
|
25 | - } |
|
16 | + /** |
|
17 | + * Constructor. |
|
18 | + * |
|
19 | + * @param string $qi First CRT coefficient in base64urlUInt encoding |
|
20 | + */ |
|
21 | + public function __construct($qi) |
|
22 | + { |
|
23 | + $this->_validateEncoding($qi); |
|
24 | + parent::__construct(self::PARAM_FIRST_CRT_COEFFICIENT, $qi); |
|
25 | + } |
|
26 | 26 | } |
@@ -11,17 +11,17 @@ |
||
11 | 11 | */ |
12 | 12 | class X509CertificateSHA256ThumbprintParameter extends JWKParameter |
13 | 13 | { |
14 | - use Base64URLValue; |
|
14 | + use Base64URLValue; |
|
15 | 15 | |
16 | - /** |
|
17 | - * Constructor. |
|
18 | - * |
|
19 | - * @param string $thumbprint Base64url encoded SHA-256 hash |
|
20 | - */ |
|
21 | - public function __construct($thumbprint) |
|
22 | - { |
|
23 | - $this->_validateEncoding($thumbprint); |
|
24 | - parent::__construct(self::PARAM_X509_CERTIFICATE_SHA256_THUMBPRINT, |
|
25 | - (string) $thumbprint); |
|
26 | - } |
|
16 | + /** |
|
17 | + * Constructor. |
|
18 | + * |
|
19 | + * @param string $thumbprint Base64url encoded SHA-256 hash |
|
20 | + */ |
|
21 | + public function __construct($thumbprint) |
|
22 | + { |
|
23 | + $this->_validateEncoding($thumbprint); |
|
24 | + parent::__construct(self::PARAM_X509_CERTIFICATE_SHA256_THUMBPRINT, |
|
25 | + (string) $thumbprint); |
|
26 | + } |
|
27 | 27 | } |
@@ -11,15 +11,15 @@ |
||
11 | 11 | */ |
12 | 12 | class X509URLParameter extends JWKParameter |
13 | 13 | { |
14 | - use StringParameterValue; |
|
14 | + use StringParameterValue; |
|
15 | 15 | |
16 | - /** |
|
17 | - * Constructor. |
|
18 | - * |
|
19 | - * @param string $uri |
|
20 | - */ |
|
21 | - public function __construct($uri) |
|
22 | - { |
|
23 | - parent::__construct(self::PARAM_X509_URL, (string) $uri); |
|
24 | - } |
|
16 | + /** |
|
17 | + * Constructor. |
|
18 | + * |
|
19 | + * @param string $uri |
|
20 | + */ |
|
21 | + public function __construct($uri) |
|
22 | + { |
|
23 | + parent::__construct(self::PARAM_X509_URL, (string) $uri); |
|
24 | + } |
|
25 | 25 | } |
@@ -11,16 +11,16 @@ |
||
11 | 11 | */ |
12 | 12 | class FirstPrimeFactorParameter extends JWKParameter |
13 | 13 | { |
14 | - use Base64UIntValue; |
|
14 | + use Base64UIntValue; |
|
15 | 15 | |
16 | - /** |
|
17 | - * Constructor. |
|
18 | - * |
|
19 | - * @param string $p First prime factor in base64urlUInt encoding |
|
20 | - */ |
|
21 | - public function __construct($p) |
|
22 | - { |
|
23 | - $this->_validateEncoding($p); |
|
24 | - parent::__construct(self::PARAM_FIRST_PRIME_FACTOR, $p); |
|
25 | - } |
|
16 | + /** |
|
17 | + * Constructor. |
|
18 | + * |
|
19 | + * @param string $p First prime factor in base64urlUInt encoding |
|
20 | + */ |
|
21 | + public function __construct($p) |
|
22 | + { |
|
23 | + $this->_validateEncoding($p); |
|
24 | + parent::__construct(self::PARAM_FIRST_PRIME_FACTOR, $p); |
|
25 | + } |
|
26 | 26 | } |
@@ -11,16 +11,16 @@ |
||
11 | 11 | */ |
12 | 12 | class XCoordinateParameter extends CoordinateParameter |
13 | 13 | { |
14 | - use Base64URLValue; |
|
14 | + use Base64URLValue; |
|
15 | 15 | |
16 | - /** |
|
17 | - * Constructor. |
|
18 | - * |
|
19 | - * @param string $coord X coordinate in base64url encoding |
|
20 | - */ |
|
21 | - public function __construct($coord) |
|
22 | - { |
|
23 | - $this->_validateEncoding($coord); |
|
24 | - parent::__construct(self::PARAM_X_COORDINATE, $coord); |
|
25 | - } |
|
16 | + /** |
|
17 | + * Constructor. |
|
18 | + * |
|
19 | + * @param string $coord X coordinate in base64url encoding |
|
20 | + */ |
|
21 | + public function __construct($coord) |
|
22 | + { |
|
23 | + $this->_validateEncoding($coord); |
|
24 | + parent::__construct(self::PARAM_X_COORDINATE, $coord); |
|
25 | + } |
|
26 | 26 | } |
@@ -11,15 +11,15 @@ |
||
11 | 11 | */ |
12 | 12 | class AlgorithmParameter extends JWKParameter |
13 | 13 | { |
14 | - use StringParameterValue; |
|
14 | + use StringParameterValue; |
|
15 | 15 | |
16 | - /** |
|
17 | - * Constructor. |
|
18 | - * |
|
19 | - * @param string $algo Algorithm name |
|
20 | - */ |
|
21 | - public function __construct($algo) |
|
22 | - { |
|
23 | - parent::__construct(self::PARAM_ALGORITHM, $algo); |
|
24 | - } |
|
16 | + /** |
|
17 | + * Constructor. |
|
18 | + * |
|
19 | + * @param string $algo Algorithm name |
|
20 | + */ |
|
21 | + public function __construct($algo) |
|
22 | + { |
|
23 | + parent::__construct(self::PARAM_ALGORITHM, $algo); |
|
24 | + } |
|
25 | 25 | } |