reSIProcate
SIP stack, Dialog Usage Manager and related libraries
Loading...
Searching...
No Matches
TlsPeerIdentityInfoMessage.hxx
Go to the documentation of this file.
1#if !defined(RESIP_TLSPEERIDENTITYINFOMESSAGE_HXX)
2#define RESIP_TLSPEERIDENTITYINFOMESSAGE_HXX
3
4#include <set>
5
6#include "rutil/Data.hxx"
8
9namespace resip
10{
11
13{
14 public:
15 TlsPeerIdentityInfoMessage(const Data& transactionId,
16 resip::TransactionUser* transactionUser);
18
19 const std::set<resip::Data>& peerNames() const{return mPeerNames;}
20 std::set<resip::Data>& peerNames(){return mPeerNames;}
21
22 const std::set<resip::Data>& identities() const{return mIdentities;}
23 std::set<resip::Data>& identities(){return mIdentities;}
24
25 const bool authorized() const{return mAuthorized;}
26 bool& authorized(){return mAuthorized;}
27
28 virtual resip::Message* clone() const;
29
30 virtual std::ostream& encode(std::ostream& strm) const;
31 virtual std::ostream& encodeBrief(std::ostream& strm) const;
32
33 private:
34 std::set<resip::Data> mPeerNames;
35 std::set<resip::Data> mIdentities;
36 bool mAuthorized;
37};
38
39std::ostream&
40operator<<(std::ostream& strm, const TlsPeerIdentityInfoMessage& msg);
41
42}
43
44#endif
45
46/* ====================================================================
47 *
48 * Copyright 2014 Daniel Pocock http://danielpocock.com All rights reserved.
49 *
50 * Redistribution and use in source and binary forms, with or without
51 * modification, are permitted provided that the following conditions
52 * are met:
53 *
54 * 1. Redistributions of source code must retain the above copyright
55 * notice, this list of conditions and the following disclaimer.
56 *
57 * 2. Redistributions in binary form must reproduce the above copyright
58 * notice, this list of conditions and the following disclaimer in
59 * the documentation and/or other materials provided with the
60 * distribution.
61 *
62 * 3. Neither the name of the author(s) nor the names of any contributors
63 * may be used to endorse or promote products derived from this software
64 * without specific prior written permission.
65 *
66 * THIS SOFTWARE IS PROVIDED BY THE AUTHOR(S) AND CONTRIBUTORS "AS IS" AND
67 * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
68 * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
69 * ARE DISCLAIMED. IN NO EVENT SHALL THE AUTHOR(S) OR CONTRIBUTORS BE LIABLE
70 * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
71 * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
72 * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
73 * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
74 * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
75 * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
76 * SUCH DAMAGE.
77 *
78 * ====================================================================
79 *
80 *
81 */
82
An alternative to std::string, encapsulates an arbitrary buffer of bytes.
Definition Data.hxx:90
dcm! – what is the intent of ApplicationMessage, especially as used in
The base-class used for message-passing.
Definition Message.hxx:21
const std::set< resip::Data > & identities() const
virtual std::ostream & encode(std::ostream &strm) const
virtual std::ostream & encodeBrief(std::ostream &strm) const
const std::set< resip::Data > & peerNames() const
virtual resip::Message * clone() const
The base-class for an RFC 3261 Transaction User.
dcm! – add UnusedChecking(_enum) below;
EncodeStream & operator<<(EncodeStream &strm, const BaseException &e)