Exemple #1
0
 /**
  * Get the raw encrypted content of this object
  *
  * @param ObjectVersion $version
  * @return string - encrypted bytes
  */
 public function copyStateToVersion(ObjectVersion $version)
 {
     $version->setEncryptedSessionKey($this->sessionKey, $this->sessionKeyIv);
     $version->setEncryptedContent($this->content);
     $version->setEncryptedChecksum($this->checksum);
     $version->setFormat($this->format);
     return $version;
 }