Digital Signature Object lets authors sign the portion of their * header that lies between the end of the File Properties Object and the * beginning of the Digital Signature Object. * * @package php-reader * @subpackage ASF * @author Sven Vollbehr * @copyright Copyright (c) 2008 The PHP Reader Project Workgroup * @license http://code.google.com/p/php-reader/wiki/License New BSD License * @version $Rev: 108 $ */ final class ASF_Object_DigitalSignature extends ASF_Object { /** @var integer */ private $_signatureType; /** @var string */ private $_signatureData; /** * Constructs the class with given parameters and reads object related data * from the ASF file. * * @param Reader $reader The reader object. * @param Array $options The options array. */ public function __construct($reader, &$options = array()) { parent::__construct($reader, $options); $this->_signatureType = $this->_reader->readUInt32LE(); $signatureDataLength = $this->_reader->readUInt32LE(); $this->_signatureData = $this->_reader->read($signatureDataLength); } /** * Returns the type of digital signature used. This field is set to 2. * * @return integer */ public function getSignatureType() { return $this->_signatureType; } /** * Returns the digital signature data. * * @return string */ public function getSignatureData() { return $this->_signatureData; } }