Auth_OpenID_AssociateRequest::answer PHP Method

answer() public method

public answer ( $assoc )
    function answer($assoc)
    {
        $response = new Auth_OpenID_ServerResponse($this);
        $response->fields->updateArgs(Auth_OpenID_OPENID_NS, array('expires_in' => sprintf('%d', $assoc->getExpiresIn()), 'assoc_type' => $this->assoc_type, 'assoc_handle' => $assoc->handle));
        $response->fields->updateArgs(Auth_OpenID_OPENID_NS, $this->session->answer($assoc->secret));
        if (!($this->session->session_type == 'no-encryption' && $this->message->isOpenID1())) {
            $response->fields->setArg(Auth_OpenID_OPENID_NS, 'session_type', $this->session->session_type);
        }
        return $response;
    }