reSIProcate
SIP stack, Dialog Usage Manager and related libraries
Loading...
Searching...
No Matches
TlsPeerIdentityInfo.hxx
Go to the documentation of this file.
1#ifndef TLSPEERIDENTITYINFO_MESSAGE_HXX
2#define TLSPEERIDENTITYINFO_MESSAGE_HXX 1
3
6
7namespace repro
8{
9
11{
12 public:
20
23 {
24 mPeerNames = orig.mPeerNames;
25 mIdentities = orig.mIdentities;
26 mAuthorized = orig.mAuthorized;
27 }
28
29 const std::set<resip::Data>& peerNames() const{return mPeerNames;}
30 std::set<resip::Data>& peerNames(){return mPeerNames;}
31
32 const std::set<resip::Data>& identities() const{return mIdentities;}
33 std::set<resip::Data>& identities(){return mIdentities;}
34
35 const bool authorized() const{return mAuthorized;}
36 bool& authorized(){return mAuthorized;}
37
38 virtual TlsPeerIdentityInfo* clone() const {return new TlsPeerIdentityInfo(*this);};
39
40 virtual EncodeStream& encode(EncodeStream& ostr) const { ostr << "TlsPeerIdentityInfo(tid="<<mTid<<")"; return ostr; };
41 virtual EncodeStream& encodeBrief(EncodeStream& ostr) const { return encode(ostr);}
42
43 std::set<resip::Data> mPeerNames;
44 std::set<resip::Data> mIdentities;
46};
47
48}
49#endif
50
51/* ====================================================================
52 *
53 * Copyright 2014 Daniel Pocock http://danielpocock.com All rights reserved.
54 *
55 * Redistribution and use in source and binary forms, with or without
56 * modification, are permitted provided that the following conditions
57 * are met:
58 *
59 * 1. Redistributions of source code must retain the above copyright
60 * notice, this list of conditions and the following disclaimer.
61 *
62 * 2. Redistributions in binary form must reproduce the above copyright
63 * notice, this list of conditions and the following disclaimer in
64 * the documentation and/or other materials provided with the
65 * distribution.
66 *
67 * 3. Neither the name of the author(s) nor the names of any contributors
68 * may be used to endorse or promote products derived from this software
69 * without specific prior written permission.
70 *
71 * THIS SOFTWARE IS PROVIDED BY THE AUTHOR(S) AND CONTRIBUTORS "AS IS" AND
72 * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
73 * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
74 * ARE DISCLAIMED. IN NO EVENT SHALL THE AUTHOR(S) OR CONTRIBUTORS BE LIABLE
75 * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
76 * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
77 * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
78 * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
79 * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
80 * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
81 * SUCH DAMAGE.
82 *
83 * ====================================================================
84 *
85 *
86 */
std::set< resip::Data > & peerNames()
TlsPeerIdentityInfo(const TlsPeerIdentityInfo &orig)
virtual EncodeStream & encodeBrief(EncodeStream &ostr) const
output a brief description to stream
virtual TlsPeerIdentityInfo * clone() const
TlsPeerIdentityInfo(Processor &proc, const resip::Data &tid, resip::TransactionUser *passedtu)
std::set< resip::Data > mPeerNames
const std::set< resip::Data > & identities() const
std::set< resip::Data > mIdentities
std::set< resip::Data > & identities()
const std::set< resip::Data > & peerNames() const
virtual EncodeStream & encode(EncodeStream &ostr) const
output the entire message to stream
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.
#define EncodeStream
void list()
Definition userAdmin.cxx:66