Auth_OpenID_Association::checkMessageSignature PHP Method

checkMessageSignature() public method

Confirm that the signature of these fields matches the signature contained in the data.
public checkMessageSignature ( $message )
    function checkMessageSignature($message)
    {
        $sig = $message->getArg(Auth_OpenID_OPENID_NS, 'sig');
        if (!$sig || Auth_OpenID::isFailure($sig)) {
            return false;
        }
        $calculated_sig = $this->getMessageSignature($message);
        return Auth_OpenID_CryptUtil::constEq($calculated_sig, $sig);
    }