reSIProcate
SIP stack, Dialog Usage Manager and related libraries
Loading...
Searching...
No Matches
UserInfoMessage.hxx
Go to the documentation of this file.
1#ifndef USER_INFO_MESSAGE_HXX
2#define USER_INFO_MESSAGE_HXX 1
3
7
8namespace repro
9{
10
12{
13 public:
15 const resip::Data& tid,
18 mMode(resip::UserAuthInfo::Error)
19 {
20 }
21
27
28 const resip::Data& user() const{return mRec.user;}
30
31 const resip::Data& realm() const{return mRec.realm;}
33
34 const resip::Data& domain() const{return mRec.domain;}
36
37 const resip::Data& A1() const{return mRec.passwordHash;}
39
42
43 virtual UserInfoMessage* clone() const {return new UserInfoMessage(*this);};
44
45 virtual EncodeStream& encode(EncodeStream& ostr) const { ostr << "UserInfoMessage(tid="<<mTid<<")"; return ostr; };
46 virtual EncodeStream& encodeBrief(EncodeStream& ostr) const { return encode(ostr);}
47
50};
51
52}
53#endif
54
55/* ====================================================================
56 * The Vovida Software License, Version 1.0
57 *
58 * Copyright (c) 2000 Vovida Networks, Inc. All rights reserved.
59 *
60 * Redistribution and use in source and binary forms, with or without
61 * modification, are permitted provided that the following conditions
62 * are met:
63 *
64 * 1. Redistributions of source code must retain the above copyright
65 * notice, this list of conditions and the following disclaimer.
66 *
67 * 2. Redistributions in binary form must reproduce the above copyright
68 * notice, this list of conditions and the following disclaimer in
69 * the documentation and/or other materials provided with the
70 * distribution.
71 *
72 * 3. The names "VOCAL", "Vovida Open Communication Application Library",
73 * and "Vovida Open Communication Application Library (VOCAL)" must
74 * not be used to endorse or promote products derived from this
75 * software without prior written permission. For written
76 * permission, please contact vocal@vovida.org.
77 *
78 * 4. Products derived from this software may not be called "VOCAL", nor
79 * may "VOCAL" appear in their name, without prior written
80 * permission of Vovida Networks, Inc.
81 *
82 * THIS SOFTWARE IS PROVIDED "AS IS" AND ANY EXPRESSED OR IMPLIED
83 * WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES
84 * OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE, TITLE AND
85 * NON-INFRINGEMENT ARE DISCLAIMED. IN NO EVENT SHALL VOVIDA
86 * NETWORKS, INC. OR ITS CONTRIBUTORS BE LIABLE FOR ANY DIRECT DAMAGES
87 * IN EXCESS OF $1,000, NOR FOR ANY INDIRECT, INCIDENTAL, SPECIAL,
88 * EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO,
89 * PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR
90 * PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY
91 * OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
92 * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE
93 * USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH
94 * DAMAGE.
95 *
96 * ====================================================================
97 *
98 * This software consists of voluntary contributions made by Vovida
99 * Networks, Inc. and many individuals on behalf of Vovida Networks,
100 * Inc. For more information on Vovida Networks, Inc., please see
101 * <http://www.vovida.org/>.
102 *
103 */
virtual UserInfoMessage * clone() const
const resip::Data & A1() const
virtual EncodeStream & encodeBrief(EncodeStream &ostr) const
output a brief description to stream
AbstractDb::UserRecord mRec
UserInfoMessage(const UserInfoMessage &orig)
const resip::Data & user() const
resip::UserAuthInfo::InfoMode mMode
const resip::Data & domain() const
resip::UserAuthInfo::InfoMode getMode() const
virtual EncodeStream & encode(EncodeStream &ostr) const
output the entire message to stream
void setMode(const resip::UserAuthInfo::InfoMode m)
UserInfoMessage(Processor &proc, const resip::Data &tid, resip::TransactionUser *passedtu)
const resip::Data & realm() const
An alternative to std::string, encapsulates an arbitrary buffer of bytes.
Definition Data.hxx:90
The base-class for an RFC 3261 Transaction User.
This Class is used to implement a primitive form of RPC using loose XML formatting.
dcm! – add UnusedChecking(_enum) below;
#define EncodeStream
void list()
Definition userAdmin.cxx:66