@@ -447,7 +447,7 @@ |
||
| 447 | 447 | * @param array $protected_header |
| 448 | 448 | * @param array $unprotected_header |
| 449 | 449 | * |
| 450 | - * @return \Jose\Algorithm\ContentEncryption\ContentEncryptionInterface |
|
| 450 | + * @return ContentEncryptionAlgorithmInterface |
|
| 451 | 451 | */ |
| 452 | 452 | private function getContentEncryptionAlgorithm(array $instructions, array $protected_header = [], array $unprotected_header = []) |
| 453 | 453 | { |
@@ -184,7 +184,7 @@ |
||
| 184 | 184 | } |
| 185 | 185 | |
| 186 | 186 | /** |
| 187 | - * @param array $complete_headers |
|
| 187 | + * @param Object\EncryptionInstructionInterface[] $complete_headers |
|
| 188 | 188 | * |
| 189 | 189 | * @return \Jose\Algorithm\ContentEncryptionAlgorithmInterface |
| 190 | 190 | */ |
@@ -11,7 +11,6 @@ |
||
| 11 | 11 | |
| 12 | 12 | namespace Jose; |
| 13 | 13 | |
| 14 | -use Base64Url\Base64Url; |
|
| 15 | 14 | use Jose\Algorithm\ContentEncryptionAlgorithmInterface; |
| 16 | 15 | use Jose\Algorithm\JWAManagerInterface; |
| 17 | 16 | use Jose\Algorithm\KeyEncryption\DirectEncryptionInterface; |
@@ -46,7 +46,7 @@ discard block |
||
| 46 | 46 | /** |
| 47 | 47 | * @param array $data |
| 48 | 48 | * |
| 49 | - * @return \Jose\Object\JWSInterface|\Jose\Object\JWSInterface[] |
|
| 49 | + * @return JWS |
|
| 50 | 50 | */ |
| 51 | 51 | private static function loadSerializedJsonJWS(array $data) |
| 52 | 52 | { |
@@ -75,7 +75,7 @@ discard block |
||
| 75 | 75 | * @param array $data |
| 76 | 76 | * @param string $input |
| 77 | 77 | * |
| 78 | - * @return \Jose\Object\JWEInterface|\Jose\Object\JWEInterface[] |
|
| 78 | + * @return JWE |
|
| 79 | 79 | */ |
| 80 | 80 | private static function loadSerializedJsonJWE(array $data, $input) |
| 81 | 81 | { |
@@ -111,6 +111,9 @@ discard block |
||
| 111 | 111 | return $jwe; |
| 112 | 112 | } |
| 113 | 113 | |
| 114 | + /** |
|
| 115 | + * @param string $input |
|
| 116 | + */ |
|
| 114 | 117 | private static function convert($input) |
| 115 | 118 | { |
| 116 | 119 | if (is_array($data = json_decode($input, true))) { |
@@ -179,7 +182,7 @@ discard block |
||
| 179 | 182 | } |
| 180 | 183 | |
| 181 | 184 | /** |
| 182 | - * @param $input |
|
| 185 | + * @param string $input |
|
| 183 | 186 | * |
| 184 | 187 | * @return array |
| 185 | 188 | */ |
@@ -85,7 +85,7 @@ |
||
| 85 | 85 | /** |
| 86 | 86 | * @param \Jose\Object\SignatureInterface $signature |
| 87 | 87 | * |
| 88 | - * @return \Jose\Algorithm\Signature\SignatureAlgorithmInterface|null |
|
| 88 | + * @return Object\JWKInterface |
|
| 89 | 89 | */ |
| 90 | 90 | private function getAlgorithm(SignatureInterface $signature) |
| 91 | 91 | { |