primo commit
This commit is contained in:
		
							
								
								
									
										19
									
								
								libraries/vendor/joomla/crypt/src/Exception/CryptExceptionInterface.php
									
									
									
									
										vendored
									
									
										Normal file
									
								
							
							
						
						
									
										19
									
								
								libraries/vendor/joomla/crypt/src/Exception/CryptExceptionInterface.php
									
									
									
									
										vendored
									
									
										Normal file
									
								
							| @ -0,0 +1,19 @@ | ||||
| <?php | ||||
|  | ||||
| /** | ||||
|  * Part of the Joomla Framework Crypt Package | ||||
|  * | ||||
|  * @copyright  Copyright (C) 2005 - 2021 Open Source Matters, Inc. All rights reserved. | ||||
|  * @license    GNU General Public License version 2 or later; see LICENSE | ||||
|  */ | ||||
|  | ||||
| namespace Joomla\Crypt\Exception; | ||||
|  | ||||
| /** | ||||
|  * Interface defining all crypt package exceptions | ||||
|  * | ||||
|  * @since  2.0.0 | ||||
|  */ | ||||
| interface CryptExceptionInterface extends \Throwable | ||||
| { | ||||
| } | ||||
							
								
								
									
										19
									
								
								libraries/vendor/joomla/crypt/src/Exception/DecryptionException.php
									
									
									
									
										vendored
									
									
										Normal file
									
								
							
							
						
						
									
										19
									
								
								libraries/vendor/joomla/crypt/src/Exception/DecryptionException.php
									
									
									
									
										vendored
									
									
										Normal file
									
								
							| @ -0,0 +1,19 @@ | ||||
| <?php | ||||
|  | ||||
| /** | ||||
|  * Part of the Joomla Framework Crypt Package | ||||
|  * | ||||
|  * @copyright  Copyright (C) 2005 - 2021 Open Source Matters, Inc. All rights reserved. | ||||
|  * @license    GNU General Public License version 2 or later; see LICENSE | ||||
|  */ | ||||
|  | ||||
| namespace Joomla\Crypt\Exception; | ||||
|  | ||||
| /** | ||||
|  * Exception representing an error decrypting data | ||||
|  * | ||||
|  * @since  2.0.0 | ||||
|  */ | ||||
| class DecryptionException extends \RuntimeException implements CryptExceptionInterface | ||||
| { | ||||
| } | ||||
							
								
								
									
										19
									
								
								libraries/vendor/joomla/crypt/src/Exception/EncryptionException.php
									
									
									
									
										vendored
									
									
										Normal file
									
								
							
							
						
						
									
										19
									
								
								libraries/vendor/joomla/crypt/src/Exception/EncryptionException.php
									
									
									
									
										vendored
									
									
										Normal file
									
								
							| @ -0,0 +1,19 @@ | ||||
| <?php | ||||
|  | ||||
| /** | ||||
|  * Part of the Joomla Framework Crypt Package | ||||
|  * | ||||
|  * @copyright  Copyright (C) 2005 - 2021 Open Source Matters, Inc. All rights reserved. | ||||
|  * @license    GNU General Public License version 2 or later; see LICENSE | ||||
|  */ | ||||
|  | ||||
| namespace Joomla\Crypt\Exception; | ||||
|  | ||||
| /** | ||||
|  * Exception representing an error encrypting data | ||||
|  * | ||||
|  * @since  2.0.0 | ||||
|  */ | ||||
| class EncryptionException extends \RuntimeException implements CryptExceptionInterface | ||||
| { | ||||
| } | ||||
							
								
								
									
										19
									
								
								libraries/vendor/joomla/crypt/src/Exception/InvalidKeyException.php
									
									
									
									
										vendored
									
									
										Normal file
									
								
							
							
						
						
									
										19
									
								
								libraries/vendor/joomla/crypt/src/Exception/InvalidKeyException.php
									
									
									
									
										vendored
									
									
										Normal file
									
								
							| @ -0,0 +1,19 @@ | ||||
| <?php | ||||
|  | ||||
| /** | ||||
|  * Part of the Joomla Framework Crypt Package | ||||
|  * | ||||
|  * @copyright  Copyright (C) 2005 - 2021 Open Source Matters, Inc. All rights reserved. | ||||
|  * @license    GNU General Public License version 2 or later; see LICENSE | ||||
|  */ | ||||
|  | ||||
| namespace Joomla\Crypt\Exception; | ||||
|  | ||||
| /** | ||||
|  * Exception representing an error generating an encryption key | ||||
|  * | ||||
|  * @since  2.0.0 | ||||
|  */ | ||||
| class InvalidKeyException extends \RuntimeException implements CryptExceptionInterface | ||||
| { | ||||
| } | ||||
							
								
								
									
										31
									
								
								libraries/vendor/joomla/crypt/src/Exception/InvalidKeyTypeException.php
									
									
									
									
										vendored
									
									
										Normal file
									
								
							
							
						
						
									
										31
									
								
								libraries/vendor/joomla/crypt/src/Exception/InvalidKeyTypeException.php
									
									
									
									
										vendored
									
									
										Normal file
									
								
							| @ -0,0 +1,31 @@ | ||||
| <?php | ||||
|  | ||||
| /** | ||||
|  * Part of the Joomla Framework Crypt Package | ||||
|  * | ||||
|  * @copyright  Copyright (C) 2005 - 2021 Open Source Matters, Inc. All rights reserved. | ||||
|  * @license    GNU General Public License version 2 or later; see LICENSE | ||||
|  */ | ||||
|  | ||||
| namespace Joomla\Crypt\Exception; | ||||
|  | ||||
| /** | ||||
|  * Exception representing an invalid Joomla\Crypt\Key type for a cipher | ||||
|  * | ||||
|  * @since  1.4.0 | ||||
|  */ | ||||
| class InvalidKeyTypeException extends \InvalidArgumentException implements CryptExceptionInterface | ||||
| { | ||||
|     /** | ||||
|      * InvalidKeyTypeException constructor. | ||||
|      * | ||||
|      * @param   string  $expectedKeyType  The expected key type. | ||||
|      * @param   string  $actualKeyType    The actual key type. | ||||
|      * | ||||
|      * @since   1.4.0 | ||||
|      */ | ||||
|     public function __construct($expectedKeyType, $actualKeyType) | ||||
|     { | ||||
|         parent::__construct("Invalid key of type: $actualKeyType.  Expected $expectedKeyType."); | ||||
|     } | ||||
| } | ||||
							
								
								
									
										30
									
								
								libraries/vendor/joomla/crypt/src/Exception/UnsupportedCipherException.php
									
									
									
									
										vendored
									
									
										Normal file
									
								
							
							
						
						
									
										30
									
								
								libraries/vendor/joomla/crypt/src/Exception/UnsupportedCipherException.php
									
									
									
									
										vendored
									
									
										Normal file
									
								
							| @ -0,0 +1,30 @@ | ||||
| <?php | ||||
|  | ||||
| /** | ||||
|  * Part of the Joomla Framework Crypt Package | ||||
|  * | ||||
|  * @copyright  Copyright (C) 2005 - 2021 Open Source Matters, Inc. All rights reserved. | ||||
|  * @license    GNU General Public License version 2 or later; see LICENSE | ||||
|  */ | ||||
|  | ||||
| namespace Joomla\Crypt\Exception; | ||||
|  | ||||
| /** | ||||
|  * Exception representing an error encrypting data | ||||
|  * | ||||
|  * @since  2.0.0 | ||||
|  */ | ||||
| class UnsupportedCipherException extends \LogicException implements CryptExceptionInterface | ||||
| { | ||||
|     /** | ||||
|      * UnsupportedCipherException constructor. | ||||
|      * | ||||
|      * @param   string  $class  The class name of the unsupported cipher. | ||||
|      * | ||||
|      * @since   2.0.0 | ||||
|      */ | ||||
|     public function __construct(string $class) | ||||
|     { | ||||
|         parent::__construct("The '$class' cipher is not supported in this environment."); | ||||
|     } | ||||
| } | ||||
		Reference in New Issue
	
	Block a user