/[resiprocate]/main/sip/resiprocate/Pkcs7Contents.hxx
ViewVC logotype

Contents of /main/sip/resiprocate/Pkcs7Contents.hxx

Parent Directory Parent Directory | Revision Log Revision Log


Revision 4599 - (show annotations) (download)
Wed May 11 23:10:19 2005 UTC (14 years, 7 months ago) by derek
File size: 4083 byte(s)
set svn:eol-style to LF
1 #if !defined(RESIP_PKCS7CONTENTS_HXX)
2 #define RESIP_PKCS7CONTENTS_HXX
3
4 #include "resiprocate/Contents.hxx"
5 #include "resiprocate/os/Data.hxx"
6
7 namespace resip
8 {
9
10 class Pkcs7Contents : public Contents
11 {
12 public:
13 static const Pkcs7Contents Empty;
14
15 Pkcs7Contents();
16 Pkcs7Contents(const Data& text);
17 Pkcs7Contents(HeaderFieldValue* hfv, const Mime& contentType);
18 Pkcs7Contents(const Data& data, const Mime& contentType);
19 Pkcs7Contents(const Pkcs7Contents& rhs);
20 virtual ~Pkcs7Contents();
21 Pkcs7Contents& operator=(const Pkcs7Contents& rhs);
22
23 virtual Contents* clone() const;
24
25 virtual Data getBodyData() const;
26
27 static const Mime& getStaticType() ;
28
29 virtual std::ostream& encodeParsed(std::ostream& str) const;
30 virtual void parse(ParseBuffer& pb);
31
32 //Data& text() {checkParsed(); return mText;}
33
34 static bool init();
35
36 private:
37 Data mText;
38 };
39
40 static bool invokePkcs7ContentsInit = Pkcs7Contents::init();
41
42 class Pkcs7SignedContents : public Pkcs7Contents
43 {
44 public:
45 static const Pkcs7SignedContents Empty;
46
47 Pkcs7SignedContents();
48 Pkcs7SignedContents(const Data& text);
49 Pkcs7SignedContents(HeaderFieldValue* hfv, const Mime& contentType);
50 Pkcs7SignedContents(const Data& data, const Mime& contentType);
51 Pkcs7SignedContents(const Pkcs7SignedContents& rhs);
52
53 virtual ~Pkcs7SignedContents();
54
55 Pkcs7SignedContents& operator=(const Pkcs7SignedContents& rhs);
56
57 static const Mime& getStaticType() ;
58 virtual Contents* clone() const;
59
60 static bool init();
61 };
62
63 static bool invokePkcs7SignedContentsInit = Pkcs7SignedContents::init();
64
65 }
66
67 #endif
68
69 /* ====================================================================
70 * The Vovida Software License, Version 1.0
71 *
72 * Copyright (c) 2000 Vovida Networks, Inc. All rights reserved.
73 *
74 * Redistribution and use in source and binary forms, with or without
75 * modification, are permitted provided that the following conditions
76 * are met:
77 *
78 * 1. Redistributions of source code must retain the above copyright
79 * notice, this list of conditions and the following disclaimer.
80 *
81 * 2. Redistributions in binary form must reproduce the above copyright
82 * notice, this list of conditions and the following disclaimer in
83 * the documentation and/or other materials provided with the
84 * distribution.
85 *
86 * 3. The names "VOCAL", "Vovida Open Communication Application Library",
87 * and "Vovida Open Communication Application Library (VOCAL)" must
88 * not be used to endorse or promote products derived from this
89 * software without prior written permission. For written
90 * permission, please contact vocal@vovida.org.
91 *
92 * 4. Products derived from this software may not be called "VOCAL", nor
93 * may "VOCAL" appear in their name, without prior written
94 * permission of Vovida Networks, Inc.
95 *
96 * THIS SOFTWARE IS PROVIDED "AS IS" AND ANY EXPRESSED OR IMPLIED
97 * WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES
98 * OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE, TITLE AND
99 * NON-INFRINGEMENT ARE DISCLAIMED. IN NO EVENT SHALL VOVIDA
100 * NETWORKS, INC. OR ITS CONTRIBUTORS BE LIABLE FOR ANY DIRECT DAMAGES
101 * IN EXCESS OF $1,000, NOR FOR ANY INDIRECT, INCIDENTAL, SPECIAL,
102 * EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO,
103 * PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR
104 * PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY
105 * OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
106 * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE
107 * USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH
108 * DAMAGE.
109 *
110 * ====================================================================
111 *
112 * This software consists of voluntary contributions made by Vovida
113 * Networks, Inc. and many individuals on behalf of Vovida Networks,
114 * Inc. For more information on Vovida Networks, Inc., please see
115 * <http://www.vovida.org/>.
116 *
117 */

Properties

Name Value
svn:eol-style LF

webmaster AT resiprocate DOT org
ViewVC Help
Powered by ViewVC 1.1.27