Matrix Science Mascot Parser toolkit
 
Loading...
Searching...
No Matches
ms_security_options.hpp
1/*
2##############################################################################
3# file: ms_security_options.hpp #
4# 'msparser' toolkit #
5# Encapsulates the global security options for Mascot authentication #
6##############################################################################
7# COPYRIGHT NOTICE #
8# Copyright 1998-2004 Matrix Science Limited All Rights Reserved. #
9# #
10##############################################################################
11# $Archive:: /MowseBranches/ms_mascotresfile_1.2/include/ms_mascotresfi $ #
12# $Author: villek@matrixscience.com $ #
13# $Date: 2018-07-30 16:23:53 +0100 $ #
14# $Revision: 1b450440f9c97e1e41d0fc6016a27d68951d4532 | MSPARSER_REL_3_0_0-2024-09-24-0-g93ebaeb4f4 $ #
15# $NoKeywords:: $ #
16##############################################################################
17*/
18
19
20#if !defined(ms_security_options_INCLUDED_)
21#define ms_security_options_INCLUDED_
22
23
24// Includes from the standard template library
25#include <string>
26#include <set>
27#include <vector>
28#include <map>
29#include <time.h>
30
31namespace matrix_science {
37 class ms_security;
38
40
45 class MS_MASCOTRESFILE_API ms_security_options: public ms_errors
46 {
47
48 public:
51
53
55#ifndef SWIG
56 ms_security_options& operator=(const ms_security_options & right);
57#endif
58 void copyFrom(const ms_security_options * right);
59
61 bool isSecurityEnabled() const;
62
64 void setSecurityEnabled(bool newVal);
65
67 time_t getSessionTimeout() const;
68
70 void setSessionTimeout(time_t newVal);
71
73 time_t getDefaultPasswordExpiryTime() const;
74
76 void setDefaultPasswordExpiryTime(time_t newVal);
77
79 unsigned int getMinimumPasswordLength() const;
80
82 void setMinimumPasswordLength(unsigned int newVal);
83
85 bool getUseSessionCookies() const;
86
88 void setUseSessionCookies(bool newVal);
89
91 bool getVerifySessionIPAddress() const;
92
94 void setVerifySessionIPAddress(bool newVal);
95
97 matrix_science::ms_errs::msg_sev getLoggingLevel() const;
98
100 void setLoggingLevel(ms_errs::msg_sev newVal);
101
103 std::string getIntegraAppServerURL() const;
104
106 void setIntegraAppServerURL(std::string newVal);
107
109 std::string getIntegraDatabaseName() const;
110
112 void setIntegraDatabaseName(std::string newVal);
113
115 std::string getIntegraOracleServerName() const;
116
118 void setIntegraOracleServerName(std::string newVal);
119
121 std::string getLogFileName();
122
124 void setLogFileName(std::string newVal);
125
126 protected:
127 bool loadFromFile();
128 bool saveToFile();
129
130 private:
131 std::string filename_;
132
133 bool securityEnabled_;
134 time_t sessionTimeout_;
135 time_t defaultPasswordExpiryTime_;
136 unsigned int minimumPasswordLength_;
137 bool useSessionCookies_;
138 bool verifySessionIPAddress_;
139 ms_errs::msg_sev logLevel_;
140 std::string logFile_;
141 std::string integraAppServerURL_;
142 std::string integraDatabaseName_;
143 std::string integraOracleServerName_;
144 }; // end of security_group
146
147}
148#endif // !defined(ms_security_options_INCLUDED_)
This class is used as a base class for several Mascot Parser classes.
Definition: ms_errors.hpp:696
msg_sev
Message severity levels.
Definition: ms_log.hpp:47
Options for the Mascot security system.
Definition: ms_security_options.hpp:46