reSIProcate/repro  9694
UserInfoMessage.hxx
Go to the documentation of this file.
00001 #ifndef USER_INFO_MESSAGE_HXX
00002 #define USER_INFO_MESSAGE_HXX 1
00003 
00004 #include "repro/ProcessorMessage.hxx"
00005 #include "repro/AbstractDb.hxx"
00006 
00007 namespace repro
00008 {
00009 
00010 class UserInfoMessage : public ProcessorMessage
00011 {
00012    public:
00013       UserInfoMessage(Processor& proc,
00014                      const resip::Data& tid,
00015                      resip::TransactionUser* passedtu):
00016          ProcessorMessage(proc,tid,passedtu)
00017       {
00018       }
00019       
00020       UserInfoMessage(const UserInfoMessage& orig):
00021          ProcessorMessage(orig)
00022       {
00023          mRec=orig.mRec;
00024       }
00025 
00026       const resip::Data& user() const{return mRec.user;}
00027       resip::Data& user(){return mRec.user;}
00028       
00029       const resip::Data& realm() const{return mRec.realm;}
00030       resip::Data& realm(){return mRec.realm;}
00031       
00032       const resip::Data& domain() const{return mRec.domain;}
00033       resip::Data& domain(){return mRec.domain;}
00034       
00035       const resip::Data& A1() const{return mRec.passwordHash;}
00036       resip::Data& A1(){return mRec.passwordHash;}
00037       
00038       virtual UserInfoMessage* clone() const {return new UserInfoMessage(*this);};
00039 
00040       virtual EncodeStream& encode(EncodeStream& ostr) const { ostr << "UserInfoMessage(tid="<<mTid<<")"; return ostr; };
00041       virtual EncodeStream& encodeBrief(EncodeStream& ostr) const { return encode(ostr);}
00042       
00043       AbstractDb::UserRecord mRec;
00044 };
00045 
00046 }
00047 #endif
00048 
00049 /* ====================================================================
00050  * The Vovida Software License, Version 1.0 
00051  * 
00052  * Copyright (c) 2000 Vovida Networks, Inc.  All rights reserved.
00053  * 
00054  * Redistribution and use in source and binary forms, with or without
00055  * modification, are permitted provided that the following conditions
00056  * are met:
00057  * 
00058  * 1. Redistributions of source code must retain the above copyright
00059  *    notice, this list of conditions and the following disclaimer.
00060  * 
00061  * 2. Redistributions in binary form must reproduce the above copyright
00062  *    notice, this list of conditions and the following disclaimer in
00063  *    the documentation and/or other materials provided with the
00064  *    distribution.
00065  * 
00066  * 3. The names "VOCAL", "Vovida Open Communication Application Library",
00067  *    and "Vovida Open Communication Application Library (VOCAL)" must
00068  *    not be used to endorse or promote products derived from this
00069  *    software without prior written permission. For written
00070  *    permission, please contact vocal@vovida.org.
00071  *
00072  * 4. Products derived from this software may not be called "VOCAL", nor
00073  *    may "VOCAL" appear in their name, without prior written
00074  *    permission of Vovida Networks, Inc.
00075  * 
00076  * THIS SOFTWARE IS PROVIDED "AS IS" AND ANY EXPRESSED OR IMPLIED
00077  * WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES
00078  * OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE, TITLE AND
00079  * NON-INFRINGEMENT ARE DISCLAIMED.  IN NO EVENT SHALL VOVIDA
00080  * NETWORKS, INC. OR ITS CONTRIBUTORS BE LIABLE FOR ANY DIRECT DAMAGES
00081  * IN EXCESS OF $1,000, NOR FOR ANY INDIRECT, INCIDENTAL, SPECIAL,
00082  * EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO,
00083  * PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR
00084  * PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY
00085  * OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
00086  * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE
00087  * USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH
00088  * DAMAGE.
00089  * 
00090  * ====================================================================
00091  * 
00092  * This software consists of voluntary contributions made by Vovida
00093  * Networks, Inc. and many individuals on behalf of Vovida Networks,
00094  * Inc.  For more information on Vovida Networks, Inc., please see
00095  * <http://www.vovida.org/>.
00096  *
00097  */