コード例 #1
0
ファイル: AssociationTest.php プロジェクト: shupp/openid
 /**
  * testNoSignedKeys
  * 
  * @return void
  */
 public function testNoSignedKeys()
 {
     $message = new OpenID_Message();
     $message->set('openid.assoc_handle', $this->object->assocHandle);
     $message->set('openid.op_endpoint', 'http://example.com');
     $this->assertFalse($this->object->checkMessageSignature($message));
 }
コード例 #2
0
ファイル: Assertion.php プロジェクト: shupp/openid
 /**
  * Verifies the signature of this message association.
  * 
  * @param OpenID_Association $assoc Association to use for checking the signature
  * 
  * @return bool result of OpenID_Association::checkMessageSignature()
  * @see OpenID_Association::checkMessageSignature()
  */
 public function verifySignature(OpenID_Association $assoc)
 {
     return $assoc->checkMessageSignature($this->message);
 }