/[resiprocate]/main/sip/resiprocate/dum/Profile.hxx
ViewVC logotype

Contents of /main/sip/resiprocate/dum/Profile.hxx

Parent Directory Parent Directory | Revision Log Revision Log


Revision 2553 - (show annotations) (download)
Sun Apr 4 19:18:49 2004 UTC (15 years, 9 months ago) by jason
File size: 1976 byte(s)
*** empty log message ***

1 #if !defined(RESIP_PROFILE_HXX)
2 #define RESIP_PROFILE_HXX
3
4 namespace resip
5 {
6
7 class Data;
8 class Mime;
9 class Token;
10
11
12 class Profile
13 {
14 public:
15 bool isSchemeSupported(const Data& scheme);
16 bool isMethodSupported(MethodTypes method);
17 bool isMimeTypeSupported(const Mime& mimeType);
18 bool isContentEncodingSupported(const Token& contentEncoding);
19 bool isLanguageSupported(const Tokens& lang);
20
21 // return the list of unsupported tokens from set of requires tokens
22 Tokens isSupported(Token& requires);
23 Tokens getSupportedOptionTags();
24 Tokens getAllowedMethods();
25 Mimes getSupportedMimeTypes();
26 Tokens getSupportedEncodings();
27 Tokens getSupportedLanguages();
28 NameAddr& getDefaultAor();
29
30 void addSupportedScheme(const Data& scheme);
31 void addSupportedMethod(const MethodTypes& method);
32 void addSuportedOptionTags(const Token& tag);
33 void addSupportedMimeType(const Mime& mimeType);
34 void addSupportedEncoding(const Token& encoding);
35 void addSupportedLanguage(const Token& lang);
36
37 void setDefaultAor(const NameAddr& from);
38 void setOutboundProxy( const Data& uri );
39
40
41 /// The following functions deal with getting digest credentals
42 //@{
43
44 void addDigestCredential( const Data& realm, const Data& users, const Data& password);
45
46 /** This class is used as a callback to get digest crednetials. The
47 * derived class must define one of computeA1 or getPaswword. computeA1 is
48 * tried first and it it returns an empty string, then getPassword is
49 * tried. */
50 class DigestCredentialHandler
51 {
52 public:
53 virtual Data computeA1( const Data& realm, const Data& users );
54 virtual Data getPassword( const Data& realm, const Data& users );
55 };
56
57 void setDigestHandler( DigestCredentialHandler* handler );
58 //@}
59
60 private:
61 };
62
63
64
65 }
66
67 #endif

webmaster AT resiprocate DOT org
ViewVC Help
Powered by ViewVC 1.1.27