1 #ifndef _UACAuth_h_ 2 #define _UACAuth_h_ 3 #include "ampi/UACAuthAPI.h" 4 #include "AmSession.h" 5 #include "AmArg.h" 6 7 class AmUACAuth { 8 protected: 9 AmUACAuth(); 10 ~AmUACAuth(); 11 public: 12 /** 13 unpack UAC auth credentials from an AmArg 14 @return UACAuthCred object, NULL if failed 15 */ 16 17 static UACAuthCred* unpackCredentials(const AmArg& arg); 18 19 /** 20 enable SIP UAC authentication 21 @return true if successful 22 */ 23 static bool enable(AmSession* s); 24 25 }; 26 #endif 27