FME Server C++ API 3.0
|
00001 #ifndef _IFMESERVERUSERTOKEN_H 00002 #define _IFMESERVERUSERTOKEN_H 00003 00056 #include <fmeservertypes.h> 00057 00058 class IFMEServerString; 00059 00060 //=========================================================================== 00061 // Abstract Interface Class -- all methods are virtual and it has no data 00062 class IFMEServerUserToken 00063 { 00064 public: 00065 // ----------------------------------------------------------------------- 00070 virtual void getToken(IFMEServerString& token) const = 0; 00071 00072 // ----------------------------------------------------------------------- 00079 virtual void getClientAddress(IFMEServerString& clientAddress) const = 0; 00080 00081 // ----------------------------------------------------------------------- 00086 virtual FME_Int64 getExpirationTimeout() const = 0; 00087 00088 protected: 00089 00090 // ----------------------------------------------------------------------- 00091 // No one should be creating an instance of this directly, so we 00092 // make the constructor protected. 00093 IFMEServerUserToken() {} 00094 00095 // ----------------------------------------------------------------------- 00096 // No one should be destroying an instance of this directly, so we 00097 // make the destructor protected. 00098 virtual ~IFMEServerUserToken() {} 00099 00100 private: 00101 00102 // ----------------------------------------------------------------------- 00103 // The copy constructor is not implemented. 00104 IFMEServerUserToken(const IFMEServerUserToken &other); 00105 00106 // ----------------------------------------------------------------------- 00107 // The assignment operator is not implemented. 00108 IFMEServerUserToken &operator=(const IFMEServerUserToken &other); 00109 00110 }; 00111 00112 #endif