# File lib/openid/server.rb, line 358 def answer(assoc) response = OpenIDResponse.new(self) response.fields.update_args(OPENID_NS, { 'expires_in' => sprintf('%d', assoc.expires_in()), 'assoc_type' => @assoc_type, 'assoc_handle' => assoc.handle, }) response.fields.update_args(OPENID_NS, @session.answer(assoc.secret)) if @session.session_type != 'no-encryption' response.fields.set_arg( OPENID_NS, 'session_type', @session.session_type) end return response end