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UX[QkJ7ȋ既iN2׸] UUo2?rpٮ[ m؅NiW$+9K~@K^\hJ8 P(7ݺH+dQ|x81:(`gNF)'SET>YŏtqNeo[']7ψ>{QNz VOR$^[4"m'+׷e(@)C=>31l LSj &ρ\l_t{gJA(G2;H޽r= Yc_GJ-<4 N?s1_ ; ]֟dٗh&O|hFL5Cz,>mQ!Un=DfVrU81/E!VO:qxmXXEs fċz 4`sN9ew+ w:<'nxQϐjkiS`pSM1~)Hhc tpx0~_衄I`,>CdZ(cV#FﶩĀE ␍& "C\2=U_ZȟoYCPn6 /6MB=y?d1P!0|*u5BLoz4$=n^Q a& n^oY*mand the command that was called to open the * new subprocess. * * @see Crypt_GPG::_openSubprocess() */ public function __construct($message, $code = 0, $command = '') { $this->_command = $command; parent::__construct($message, $code); } /** * Returns the contents of the internal _command property * * @return string the command used to open the subprocess. * * @see Crypt_GPG_OpenSubprocessException::$_command */ public function getCommand() { return $this->_command; } } /** * An exception thrown when an invalid GPG operation is attempted * * @category Encryption * @package Crypt_GPG * @author Michael Gauthier * @copyright 2008 silverorange * @license http://www.gnu.org/copyleft/lesser.html LGPL License 2.1 * @link http://pear.php.net/package/Crypt_GPG */ class Crypt_GPG_InvalidOperationException extends Crypt_GPG_Exception { /** * The attempted operation * * @var string */ private $_operation = ''; /** * Creates a new Crypt_GPG_OpenSubprocessException * * @param string $message an error message. * @param integer $code a user defined error code. * @param string $operation the operation. */ public function __construct($message, $code = 0, $operation = '') { $this->_operation = $operation; parent::__construct($message, $code); } /** * Returns the contents of the internal _operation property * * @return string the attempted operation. * * @see Crypt_GPG_InvalidOperationException::$_operation */ public function getOperation() { return $this->_operation; } } /** * An exception thrown when Crypt_GPG fails to find the key for various * operations * * @category Encryption * @package Crypt_GPG * @author Michael Gauthier * @copyright 2005 silverorange * @license http://www.gnu.org/copyleft/lesser.html LGPL License 2.1 * @link http://pear.php.net/package/Crypt_GPG */ class Crypt_GPG_KeyNotFoundException extends Crypt_GPG_Exception { /** * The key identifier that was searched for * * @var string */ private $_keyId = ''; /** * Creates a new Crypt_GPG_KeyNotFoundException * * @param string $message an error message. * @param integer $code a user defined error code. * @param string $keyId the key identifier of the key. */ public function __construct($message, $code = 0, $keyId= '') { $this->_keyId = $keyId; parent::__construct($message, $code); } /** * Gets the key identifier of the key that was not found * * @return string the key identifier of the key that was not found. */ public function getKeyId() { return $this->_keyId; } } /** * An exception thrown when Crypt_GPG cannot find valid data for various * operations * * @category Encryption * @package Crypt_GPG * @author Michael Gauthier * @copyright 2006 silverorange * @license http://www.gnu.org/copyleft/lesser.html LGPL License 2.1 * @link http://pear.php.net/package/Crypt_GPG */ class Crypt_GPG_NoDataException extends Crypt_GPG_Exception { } /** * An exception thrown when a required passphrase is incorrect or missing * * @category Encryption * @package Crypt_GPG * @author Michael Gauthier * @copyright 2006-2008 silverorange * @license http://www.gnu.org/copyleft/lesser.html LGPL License 2.1 * @link http://pear.php.net/package/Crypt_GPG */ class Crypt_GPG_BadPassphraseException extends Crypt_GPG_Exception { /** * Keys for which the passhprase is missing * * This contains primary user ids indexed by sub-key id. * * @var array */ private $_missingPassphrases = array(); /** * Keys for which the passhprase is incorrect * * This contains primary user ids indexed by sub-key id. * * @var array */ private $_badPassphrases = array(); /** * Creates a new Crypt_GPG_BadPassphraseException * * @param string $message an error message. * @param integer $code a user defined error code. * @param array $badPassphrases an array containing user ids of keys * for which the passphrase is incorrect. * @param array $missingPassphrases an array containing user ids of keys * for which the passphrase is missing. */ public function __construct($message, $code = 0, array $badPassphrases = array(), array $missingPassphrases = array() ) { $this->_badPassphrases = (array) $badPassphrases; $this->_missingPassphrases = (array) $missingPassphrases; parent::__construct($message, $code); } /** * Gets keys for which the passhprase is incorrect * * @return array an array of keys for which the passphrase is incorrect. * The array contains primary user ids indexed by the sub-key * id. */ public function getBadPassphrases() { return $this->_badPassphrases; } /** * Gets keys for which the passhprase is missing * * @return array an array of keys for which the passphrase is missing. * The array contains primary user ids indexed by the sub-key * id. */ public function getMissingPassphrases() { return $this->_missingPassphrases; } } /** * An exception thrown when an attempt is made to delete public key that has an * associated private key on the keyring * * @category Encryption * @package Crypt_GPG * @author Michael Gauthier * @copyright 2008 silverorange * @license http://www.gnu.org/copyleft/lesser.html LGPL License 2.1 * @link http://pear.php.net/package/Crypt_GPG */ class Crypt_GPG_DeletePrivateKeyException extends Crypt_GPG_Exception { /** * The key identifier the deletion attempt was made upon * * @var string */ private $_keyId = ''; /** * Creates a new Crypt_GPG_DeletePrivateKeyException * * @param string $message an error message. * @param integer $code a user defined error code. * @param string $keyId the key identifier of the public key that was * attempted to delete. * * @see Crypt_GPG::deletePublicKey() */ public function __construct($message, $code = 0, $keyId = '') { $this->_keyId = $keyId; parent::__construct($message, $code); } /** * Gets the key identifier of the key that was not found * * @return string the key identifier of the key that was not found. */ public function getKeyId() { return $this->_keyId; } } /** * An exception thrown when an attempt is made to generate a key and the * attempt fails * * @category Encryption * @package Crypt_GPG * @author Michael Gauthier * @copyright 2011 silverorange * @license http://www.gnu.org/copyleft/lesser.html LGPL License 2.1 * @link http://pear.php.net/package/Crypt_GPG */ class Crypt_GPG_KeyNotCreatedException extends Crypt_GPG_Exception { } /** * An exception thrown when an attempt is made to generate a key and the * key parameters set on the key generator are invalid * * @category Encryption * @package Crypt_GPG * @author Michael Gauthier * @copyright 2011 silverorange * @license http://www.gnu.org/copyleft/lesser.html LGPL License 2.1 * @link http://pear.php.net/package/Crypt_GPG */ class Crypt_GPG_InvalidKeyParamsException extends Crypt_GPG_Exception { /** * The key algorithm * * @var integer */ private $_algorithm = 0; /** * The key size * * @var integer */ private $_size = 0; /** * The key usage * * @var integer */ private $_usage = 0; /** * Creates a new Crypt_GPG_InvalidKeyParamsException * * @param string $message an error message. * @param integer $code a user defined error code. * @param string $algorithm the key algorithm. * @param string $size the key size. * @param string $usage the key usage. */ public function __construct( $message, $code = 0, $algorithm = 0, $size = 0, $usage = 0 ) { parent::__construct($message, $code); $this->_algorithm = $algorithm; $this->_size = $size; $this->_usage = $usage; } /** * Gets the key algorithm * * @return integer the key algorithm. */ public function getAlgorithm() { return $this->_algorithm; } /** * Gets the key size * * @return integer the key size. */ public function getSize() { return $this->_size; } /** * Gets the key usage * * @return integer the key usage. */ public function getUsage() { return $this->_usage; } }