OpenTwin 0.1
OpenTwin
 
Loading...
Searching...
No Matches
LoginData.h
Go to the documentation of this file.
1
4// ###########################################################################################################################################################################################################################################################################################################################
5
6#pragma once
7
8// Frontend header
9#include "LogInGSSEntry.h"
10
11// std header
12#include <string>
13
14class LoginData {
15public:
17 LoginData(const LoginData& _other);
19
20 LoginData& operator = (const LoginData& _other);
21
22 void setGss(const LogInGSSEntry& _gss) { m_gss = _gss; };
23 const LogInGSSEntry& getGss(void) const { return m_gss; };
24
25 void setDatabaseUrl(const std::string& _url) { m_databaseUrl = _url; };
26 const std::string& getDatabaseUrl(void) const { return m_databaseUrl; };
27
28 void setAuthorizationUrl(const std::string& _url) { m_authorizationUrl = _url; };
29 const std::string& getAuthorizationUrl(void) const { return m_authorizationUrl; };
30
31 void setUserName(const std::string& _name) { m_username = _name; };
32 const std::string getUserName(void) const { return m_username; };
33
34 void setUserPassword(const std::string& _clearPassword) { m_userPassword = _clearPassword; };
35 const std::string& getUserPassword(void) const { return m_userPassword; };
36
37 void setEncryptedUserPassword(const std::string& _encryptedPassword) { m_encryptedUserPassword = _encryptedPassword; };
38 const std::string& getEncryptedUserPassword(void) const { return m_encryptedUserPassword; };
39
40 void setSessionUser(const std::string& _sessionUser) { m_sessionUser = _sessionUser; };
41 const std::string& getSessionUser(void) const { return m_sessionUser; };
42
43 void setSessionPassword(const std::string& _sessionPassword) { m_sessionPassword = _sessionPassword; };
44 const std::string& getSessionPassword(void) const { return m_sessionPassword; };
45
46 void clear(void);
47
48 bool isValid(void) const;
49
50private:
51 LogInGSSEntry m_gss;
52
53 std::string m_databaseUrl;
54 std::string m_authorizationUrl;
55 std::string m_username;
56 std::string m_userPassword;
57 std::string m_encryptedUserPassword;
58 std::string m_sessionUser;
59 std::string m_sessionPassword;
60
61};
Definition LogInGSSEntry.h:11
Definition LoginData.h:14
const std::string getUserName(void) const
Definition LoginData.h:32
void setSessionPassword(const std::string &_sessionPassword)
Definition LoginData.h:43
const std::string & getDatabaseUrl(void) const
Definition LoginData.h:26
void setUserName(const std::string &_name)
Definition LoginData.h:31
void setDatabaseUrl(const std::string &_url)
Definition LoginData.h:25
bool isValid(void) const
Definition LoginData.cpp:39
const std::string & getEncryptedUserPassword(void) const
Definition LoginData.h:38
~LoginData()
Definition LoginData.h:18
LoginData & operator=(const LoginData &_other)
Definition LoginData.cpp:13
void clear(void)
Definition LoginData.cpp:28
void setUserPassword(const std::string &_clearPassword)
Definition LoginData.h:34
void setGss(const LogInGSSEntry &_gss)
Definition LoginData.h:22
void setSessionUser(const std::string &_sessionUser)
Definition LoginData.h:40
const std::string & getAuthorizationUrl(void) const
Definition LoginData.h:29
const std::string & getSessionPassword(void) const
Definition LoginData.h:44
void setAuthorizationUrl(const std::string &_url)
Definition LoginData.h:28
const std::string & getSessionUser(void) const
Definition LoginData.h:41
LoginData()
Definition LoginData.h:16
void setEncryptedUserPassword(const std::string &_encryptedPassword)
Definition LoginData.h:37
const LogInGSSEntry & getGss(void) const
Definition LoginData.h:23
const std::string & getUserPassword(void) const
Definition LoginData.h:35