00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018
00019
00020 #if !defined(ms_security_options_INCLUDED_)
00021 #define ms_security_options_INCLUDED_
00022
00023
00024
00025 #include <string>
00026 #include <set>
00027 #include <vector>
00028 #include <map>
00029 #include <time.h>
00030
00031 namespace matrix_science {
00037 class ms_security;
00038
00040
00045 class MS_MASCOTRESFILE_API ms_security_options: public ms_errors
00046 {
00047
00048 public:
00050 ms_security_options();
00051
00052 ~ms_security_options();
00053
00054 ms_security_options(const ms_security_options & src);
00055 #ifndef SWIG
00056 ms_security_options& operator=(const ms_security_options & right);
00057 #endif
00058 void copyFrom(const ms_security_options * right);
00059
00061 bool isSecurityEnabled() const;
00062
00064 void setSecurityEnabled(bool newVal);
00065
00067 time_t getSessionTimeout() const;
00068
00070 void setSessionTimeout(time_t newVal);
00071
00073 time_t getDefaultPasswordExpiryTime() const;
00074
00076 void setDefaultPasswordExpiryTime(time_t newVal);
00077
00079 unsigned int getMinimumPasswordLength() const;
00080
00082 void setMinimumPasswordLength(unsigned int newVal);
00083
00085 bool getUseSessionCookies() const;
00086
00088 void setUseSessionCookies(bool newVal);
00089
00091 bool getVerifySessionIPAddress() const;
00092
00094 void setVerifySessionIPAddress(bool newVal);
00095
00097 matrix_science::ms_errs::msg_sev getLoggingLevel() const;
00098
00100 void setLoggingLevel(ms_errs::msg_sev newVal);
00101
00103 std::string getIntegraAppServerURL() const;
00104
00106 void setIntegraAppServerURL(std::string newVal);
00107
00109 std::string getIntegraDatabaseName() const;
00110
00112 void setIntegraDatabaseName(std::string newVal);
00113
00115 std::string getIntegraOracleServerName() const;
00116
00118 void setIntegraOracleServerName(std::string newVal);
00119
00121 std::string getLogFileName();
00122
00124 void setLogFileName(std::string newVal);
00125
00126 protected:
00127 bool loadFromFile();
00128 bool saveToFile();
00129
00130 private:
00131 std::string filename_;
00132
00133 bool securityEnabled_;
00134 time_t sessionTimeout_;
00135 time_t defaultPasswordExpiryTime_;
00136 unsigned int minimumPasswordLength_;
00137 bool useSessionCookies_;
00138 bool verifySessionIPAddress_;
00139 ms_errs::msg_sev logLevel_;
00140 std::string logFile_;
00141 std::string integraAppServerURL_;
00142 std::string integraDatabaseName_;
00143 std::string integraOracleServerName_;
00144 };
00146
00147 }
00148 #endif // !defined(ms_security_options_INCLUDED_)