Auth_OpenID_Association::sign PHP Method

sign() public method

Generate a signature for a sequence of (key, value) pairs
public sign ( array $pairs ) : string
$pairs array The pairs to sign, in order. This is an array of two-tuples.
return string $signature The binary signature of this sequence of pairs
    function sign($pairs)
    {
        $kv = Auth_OpenID_KVForm::fromArray($pairs);
        /* Invalid association types should be caught at constructor */
        $callback = $this->_macs[$this->assoc_type];
        return call_user_func_array($callback, array($this->secret, $kv));
    }