/home/tetron/hack/vos/libs/vos/vos/passwordauth.hh
Go to the documentation of this file.00001 #ifndef _PASSWORDAUTH_HH_
00002 #define _PASSWORDAUTH_HH_
00003
00004 #include <vos/vos/metaobject.hh>
00005
00006 #ifndef VOS_EXPORTS
00007 IMPORT_METAOBJECT_FACTORIES(PasswordAuth)
00008 #endif
00009
00010 namespace VOS {
00011
00012
00013
00014
00015
00016
00017
00018
00019
00020
00021 class VOS_API LocalPasswordAuth : public MetaObject
00022 {
00023 private:
00024 std::string password;
00025
00026 LocalPasswordAuth(VobjectBase* superobject);
00027 public:
00028
00029 virtual ~LocalPasswordAuth();
00030
00031
00032 static MetaObject* new_LocalPasswordAuth(VobjectBase* superobject,
00033 const std::string& type);
00034
00035
00036 virtual const std::string getVOSType();
00037
00038
00039
00040
00041 void setPassword(const std::string& password);
00042
00043
00044 std::string getPassword();
00045
00046
00047
00048
00049 void handleAuthRequest(Message* m);
00050 void handleSetPassword(Message* m);
00051 };
00052
00053
00054
00055
00056 class VOS_API RemotePasswordAuth : public MetaObject
00057 {
00058 RemotePasswordAuth(VobjectBase* superobject);
00059 public:
00060
00061 virtual ~RemotePasswordAuth();
00062
00063
00064 static MetaObject* new_RemotePasswordAuth(VobjectBase* superobject,
00065 const std::string& type);
00066
00067
00068 virtual const std::string getVOSType();
00069
00070
00071
00072
00073
00074
00075
00076
00077 void authenticate(const std::string& password);
00078
00079
00080
00081
00082
00083
00084
00085
00086
00087
00088
00089
00090 void setPassword(const std::string& password);
00091 };
00092
00093 }
00094
00095 #endif