reSIProcate
SIP stack, Dialog Usage Manager and related libraries
Loading...
Searching...
No Matches
Pkcs7Contents.hxx
Go to the documentation of this file.
1#if !defined(RESIP_PKCS7CONTENTS_HXX)
2#define RESIP_PKCS7CONTENTS_HXX
3
5#include "rutil/Data.hxx"
6
7namespace resip
8{
9
14class Pkcs7Contents : public Contents
15{
16 public:
17 static const Pkcs7Contents Empty;
18
20 Pkcs7Contents(const Data& text);
21 Pkcs7Contents(const HeaderFieldValue& hfv, const Mime& contentType);
22 Pkcs7Contents(const Data& data, const Mime& contentType);
23 Pkcs7Contents(const Pkcs7Contents& rhs);
24 virtual ~Pkcs7Contents();
26
30 virtual Contents* clone() const;
31
32 static const Mime& getStaticType() ;
33
34 virtual EncodeStream& encodeParsed(EncodeStream& str) const;
35 virtual void parse(ParseBuffer& pb);
36
37 //Data& text() {checkParsed(); return mText;}
38
39 static bool init();
40
41 private:
42 Data mText;
43};
44
46
52{
53 public:
55
57 Pkcs7SignedContents(const Data& text);
58 Pkcs7SignedContents(const HeaderFieldValue& hfv, const Mime& contentType);
59 Pkcs7SignedContents(const Data& data, const Mime& contentType);
61
62 virtual ~Pkcs7SignedContents();
63
65
66 static const Mime& getStaticType() ;
67
71 virtual Contents* clone() const;
72
73 static bool init();
74};
75
77
78}
79
80#endif
81
82/* ====================================================================
83 * The Vovida Software License, Version 1.0
84 *
85 * Copyright (c) 2000 Vovida Networks, Inc. All rights reserved.
86 *
87 * Redistribution and use in source and binary forms, with or without
88 * modification, are permitted provided that the following conditions
89 * are met:
90 *
91 * 1. Redistributions of source code must retain the above copyright
92 * notice, this list of conditions and the following disclaimer.
93 *
94 * 2. Redistributions in binary form must reproduce the above copyright
95 * notice, this list of conditions and the following disclaimer in
96 * the documentation and/or other materials provided with the
97 * distribution.
98 *
99 * 3. The names "VOCAL", "Vovida Open Communication Application Library",
100 * and "Vovida Open Communication Application Library (VOCAL)" must
101 * not be used to endorse or promote products derived from this
102 * software without prior written permission. For written
103 * permission, please contact vocal@vovida.org.
104 *
105 * 4. Products derived from this software may not be called "VOCAL", nor
106 * may "VOCAL" appear in their name, without prior written
107 * permission of Vovida Networks, Inc.
108 *
109 * THIS SOFTWARE IS PROVIDED "AS IS" AND ANY EXPRESSED OR IMPLIED
110 * WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES
111 * OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE, TITLE AND
112 * NON-INFRINGEMENT ARE DISCLAIMED. IN NO EVENT SHALL VOVIDA
113 * NETWORKS, INC. OR ITS CONTRIBUTORS BE LIABLE FOR ANY DIRECT DAMAGES
114 * IN EXCESS OF $1,000, NOR FOR ANY INDIRECT, INCIDENTAL, SPECIAL,
115 * EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO,
116 * PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR
117 * PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY
118 * OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
119 * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE
120 * USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH
121 * DAMAGE.
122 *
123 * ====================================================================
124 *
125 * This software consists of voluntary contributions made by Vovida
126 * Networks, Inc. and many individuals on behalf of Vovida Networks,
127 * Inc. For more information on Vovida Networks, Inc., please see
128 * <http://www.vovida.org/>.
129 *
130 */
Base class for all SIP body types.
Definition Contents.hxx:51
An alternative to std::string, encapsulates an arbitrary buffer of bytes.
Definition Data.hxx:90
Represents the "media-type" element in the RFC 3261 grammar.
Definition Mime.hxx:20
Provides string-parsing functionality with protection from buffer overflow.
SIP body type for holding PKCS7 contents (MIME content-type application/pkcs7-mime).
virtual void parse(ParseBuffer &pb)
virtual Contents * clone() const
duplicate an Pkcs7Contents object
virtual EncodeStream & encodeParsed(EncodeStream &str) const
Pkcs7Contents & operator=(const Pkcs7Contents &rhs)
static const Mime & getStaticType()
static const Pkcs7Contents Empty
SIP body type for holding PKCS7 Signed contents (MIME content-type application/pkcs7-signature).
static const Mime & getStaticType()
Pkcs7SignedContents & operator=(const Pkcs7SignedContents &rhs)
static const Pkcs7SignedContents Empty
virtual Contents * clone() const
duplicate an Pkcs7SignedContents object
Pkcs7SignedContents(const Data &data, const Mime &contentType)
dcm! – add UnusedChecking(_enum) below;
static bool invokePkcs7ContentsInit
static bool invokePkcs7SignedContentsInit
#define EncodeStream