reSIProcate
SIP stack, Dialog Usage Manager and related libraries
Loading...
Searching...
No Matches
StunAuth.hxx
Go to the documentation of this file.
1#ifndef STUNAUTH_HXX
2#define STUNAUTH_HXX
3
4#include <rutil/Data.hxx>
5
6namespace reTurn {
7
9{
10public:
11 explicit StunAuth(const resip::Data& clientUsername,
13
14 const resip::Data& getClientUsername() const { return mClientUsername; }
15 const resip::Data& getClientSharedSecret() const { return mClientSharedSecret; }
16
17private:
18 resip::Data mClientUsername;
19 resip::Data mClientSharedSecret;
20};
21
22}
23
24#endif
25
26
27/* ====================================================================
28
29 Copyright (c) 2007-2008, Plantronics, Inc.
30 All rights reserved.
31
32 Redistribution and use in source and binary forms, with or without
33 modification, are permitted provided that the following conditions are
34 met:
35
36 1. Redistributions of source code must retain the above copyright
37 notice, this list of conditions and the following disclaimer.
38
39 2. Redistributions in binary form must reproduce the above copyright
40 notice, this list of conditions and the following disclaimer in the
41 documentation and/or other materials provided with the distribution.
42
43 3. Neither the name of Plantronics nor the names of its contributors
44 may be used to endorse or promote products derived from this
45 software without specific prior written permission.
46
47 THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
48 "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
49 LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
50 A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
51 OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
52 SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
53 LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
54 DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
55 THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
56 (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
57 OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
58
59 ==================================================================== */
const resip::Data & getClientSharedSecret() const
Definition StunAuth.hxx:15
const resip::Data & getClientUsername() const
Definition StunAuth.hxx:14
An alternative to std::string, encapsulates an arbitrary buffer of bytes.
Definition Data.hxx:90
void list()
Definition userAdmin.cxx:66