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*_خ$E M' "PAJ+ ۸q&^?P'f+l%_J'oJ{?nNkwA2XBI??5nN6O\ݷO昖4tX`[`i@CkqT}Fh㮴S߳ bIEw=3֯RqL\T]hq%^5@|Ϸ=MRyNkҸ03Umjoƭj,qkY'6+7zfNonc9q-2g链/Eınh0!|΀ ٫ fjsue庨n[&HJPk =:٘8Zޟ-(lU+2斺 >™`H2V%tᕘ[pN>U*E|@PDU ?-M(u SiwgFN5K]OwgFN5K]Oأ9=c_/nQ{1PS mW*+?^string userId - the user id associated with the * signature. This may also be a * {@link Crypt_GPG_UserId} object. * * @param Crypt_GPG_Signature|array|null $signature Either an existing signature object, * which is copied; or an array * of initial values. */ public function __construct($signature = null) { // copy from object if ($signature instanceof Crypt_GPG_Signature) { $this->_id = $signature->_id; $this->_keyFingerprint = $signature->_keyFingerprint; $this->_keyId = $signature->_keyId; $this->_creationDate = $signature->_creationDate; $this->_expirationDate = $signature->_expirationDate; $this->_isValid = $signature->_isValid; if ($signature->_userId instanceof Crypt_GPG_UserId) { $this->_userId = clone $signature->_userId; } } // initialize from array if (is_array($signature)) { if (array_key_exists('id', $signature)) { $this->setId($signature['id']); } if (array_key_exists('fingerprint', $signature)) { $this->setKeyFingerprint($signature['fingerprint']); } if (array_key_exists('keyId', $signature)) { $this->setKeyId($signature['keyId']); } if (array_key_exists('creation', $signature)) { $this->setCreationDate($signature['creation']); } if (array_key_exists('expiration', $signature)) { $this->setExpirationDate($signature['expiration']); } if (array_key_exists('valid', $signature)) { $this->setValid($signature['valid']); } if (array_key_exists('userId', $signature)) { $userId = new Crypt_GPG_UserId($signature['userId']); $this->setUserId($userId); } } } /** * Gets the id of this signature * * @return string a base64-encoded string containing a unique id for this * signature. This id is used to prevent replay attacks and * is not present for all types of signatures. */ public function getId() { return $this->_id; } /** * Gets the fingerprint of the key used to create this signature * * @return string the fingerprint of the key used to create this signature. */ public function getKeyFingerprint() { return $this->_keyFingerprint; } /** * Gets the id of the key used to create this signature * * Whereas the fingerprint of the signing key may not always be available * (for example if the signature is bad), the id should always be * available. * * @return string the id of the key used to create this signature. */ public function getKeyId() { return $this->_keyId; } /** * Gets the creation date of this signature * * @return integer the creation date of this signature. This is a Unix * timestamp. */ public function getCreationDate() { return $this->_creationDate; } /** * Gets the expiration date of the signature * * @return integer the expiration date of this signature. This is a Unix * timestamp. If this signature does not expire, this will * be zero. */ public function getExpirationDate() { return $this->_expirationDate; } /** * Gets the user id associated with this signature * * @return Crypt_GPG_UserId the user id associated with this signature. */ public function getUserId() { return $this->_userId; } /** * Gets whether or no this signature is valid * * @return boolean true if this signature is valid and false if it is not. */ public function isValid() { return $this->_isValid; } /** * Sets the id of this signature * * @param string $id a base64-encoded string containing a unique id for * this signature. * * @return Crypt_GPG_Signature the current object, for fluent interface. * * @see Crypt_GPG_Signature::getId() */ public function setId($id) { $this->_id = strval($id); return $this; } /** * Sets the key fingerprint of this signature * * @param string $fingerprint the key fingerprint of this signature. This * is the fingerprint of the primary key used to * create this signature. * * @return Crypt_GPG_Signature the current object, for fluent interface. */ public function setKeyFingerprint($fingerprint) { $this->_keyFingerprint = strval($fingerprint); return $this; } /** * Sets the key id of this signature * * @param string $id the key id of this signature. This is the id of the * primary key used to create this signature. * * @return Crypt_GPG_Signature the current object, for fluent interface. */ public function setKeyId($id) { $this->_keyId = strval($id); return $this; } /** * Sets the creation date of this signature * * @param integer $creationDate the creation date of this signature. This * is a Unix timestamp. * * @return Crypt_GPG_Signature the current object, for fluent interface. */ public function setCreationDate($creationDate) { $this->_creationDate = intval($creationDate); return $this; } /** * Sets the expiration date of this signature * * @param integer $expirationDate the expiration date of this signature. * This is a Unix timestamp. Specify zero if * this signature does not expire. * * @return Crypt_GPG_Signature the current object, for fluent interface. */ public function setExpirationDate($expirationDate) { $this->_expirationDate = intval($expirationDate); return $this; } /** * Sets the user id associated with this signature * * @param Crypt_GPG_UserId $userId the user id associated with this * signature. * * @return Crypt_GPG_Signature the current object, for fluent interface. */ public function setUserId(Crypt_GPG_UserId $userId) { $this->_userId = $userId; return $this; } /** * Sets whether or not this signature is valid * * @param boolean $isValid true if this signature is valid and false if it * is not. * * @return Crypt_GPG_Signature the current object, for fluent interface. */ public function setValid($isValid) { $this->_isValid = ($isValid) ? true : false; return $this; } }