/[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 2514 - (show annotations) (download)
Sat Apr 3 22:22:52 2004 UTC (15 years, 9 months ago) by jason
File size: 1551 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
19 // return the list of unsupported tokens from set of requires tokens
20 Tokens isSupported(Token& requires);
21 Tokens getAllowedMethods();
22 Mimes getSupportedMimeTypes();
23
24 void addSupportedScheme(const Data& scheme);
25 void addSupportedMethod(const MethodTypes& method);
26 void addSuportedOptionTags(const Token& tag);
27 void addSupportedMimeType(const Mime& mimeType);
28
29 void setOutboundProxy( const Data& uri );
30
31
32 /// The following functions deal with getting digest credentals
33 //@{
34
35 void addDigestCredential( const Data& realm, const Data& users, const Data& password);
36
37 /** This class is used as a callback to get digest crednetials. The
38 * derived class must define one of computeA1 or getPaswword. computeA1 is
39 * tried first and it it returns an empty string, then getPassword is
40 * tried. */
41 class DigestCredentialHandler
42 {
43 public:
44 virtual Data computeA1( const Data& realm, const Data& users );
45 virtual Data getPassword( const Data& realm, const Data& users );
46 };
47
48 void setDigestHandler( DigestCredentialHandler* handler );
49 //@}
50
51 private:
52 };
53
54
55
56 }
57
58 #endif

webmaster AT resiprocate DOT org
ViewVC Help
Powered by ViewVC 1.1.27