primo commit
This commit is contained in:
		
							
								
								
									
										30
									
								
								libraries/vendor/web-token/jwt-library/Encryption/Compression/CompressionMethod.php
									
									
									
									
										vendored
									
									
										Normal file
									
								
							
							
						
						
									
										30
									
								
								libraries/vendor/web-token/jwt-library/Encryption/Compression/CompressionMethod.php
									
									
									
									
										vendored
									
									
										Normal file
									
								
							| @ -0,0 +1,30 @@ | ||||
| <?php | ||||
|  | ||||
| declare(strict_types=1); | ||||
|  | ||||
| namespace Jose\Component\Encryption\Compression; | ||||
|  | ||||
| /** | ||||
|  * @deprecated This class is deprecated and will be removed in v4.0. Compression is not recommended for JWE. | ||||
|  */ | ||||
| interface CompressionMethod | ||||
| { | ||||
|     /** | ||||
|      * Returns the name of the method. | ||||
|      */ | ||||
|     public function name(): string; | ||||
|  | ||||
|     /** | ||||
|      * Compress the data. Throws an exception in case of failure. | ||||
|      * | ||||
|      * @param string $data The data to compress | ||||
|      */ | ||||
|     public function compress(string $data): string; | ||||
|  | ||||
|     /** | ||||
|      * Uncompress the data. Throws an exception in case of failure. | ||||
|      * | ||||
|      * @param string $data The data to uncompress | ||||
|      */ | ||||
|     public function uncompress(string $data): string; | ||||
| } | ||||
		Reference in New Issue
	
	Block a user