verifySignature() public method

Verifies a signed message with a given public key.
public verifySignature ( string $text ) : stdClass
$text string The text to verify.
return stdClass See Horde_Crypt_Smime::verify().
Exemplo n.º 1
0
 /**
  * Generates HTML output for the S/MIME key.
  *
  * @return string  The HTML output.
  */
 protected function _outputSmimeKey()
 {
     if (empty($this->_impsmime)) {
         return array();
     }
     $raw_text = $this->_getPartStream($this->_mimepart->getMimeId());
     try {
         $sig_result = $this->_impsmime->verifySignature($this->_mimepart->replaceEOL($raw_text, Horde_Mime_Part::RFC_EOL));
     } catch (Horde_Exception $e) {
         return array();
     }
     return array($this->_mimepart->getMimeId() => array('data' => $this->_impsmime->certToHTML($sig_result->cert), 'type' => 'text/html; charset=' . $this->getConfigParam('charset')));
 }