Represents a remotely accessible server.
More...
#include <Authentication/Common/server.h>
◆ Scope
◆ Server() [1/3]
◆ Server() [2/3]
Copy constructor.
- Parameters
-
◆ Server() [3/3]
Server |
( |
const Server::Scope |
s, |
|
|
const QString & |
h, |
|
|
quint16 |
p, |
|
|
int |
c, |
|
|
bool |
enabled, |
|
|
const QString & |
authenticationProvider, |
|
|
const QString & |
authenticationProviderVersion, |
|
|
const QString & |
authenticationCredentials, |
|
|
bool |
useSecureConnection = false |
|
) |
| |
An initialising constructor.
- Parameters
-
s | the server's scope |
h | the server's host address |
p | the server's port |
c | the server's cpu count |
enabled | specifies if the server is enabled |
authenticationProvider | the authentication provider the server will use |
authenticationProviderVersion | the version number of the authentication provider |
authenticationCredentials | the credentials associated with the server |
useSecureConnection | a flag that indicates whether the server should communicate over a secure channel |
◆ ~Server()
◆ getAuthenticationCredentials()
const QString & getAuthenticationCredentials |
( |
| ) |
const |
|
inline |
◆ getAuthenticationProvider()
const QString & getAuthenticationProvider |
( |
| ) |
const |
|
inline |
◆ getAuthenticationProviderVersion()
const QString & getAuthenticationProviderVersion |
( |
| ) |
const |
|
inline |
◆ getConcurrencyCount()
int getConcurrencyCount |
( |
| ) |
const |
|
inline |
◆ getEnabled()
bool getEnabled |
( |
| ) |
const |
- Returns
- Returns true if the server is enabled.
◆ getHostName()
const QString & getHostName |
( |
| ) |
const |
|
inline |
◆ getPort()
quint16 getPort |
( |
| ) |
const |
|
inline |
◆ getScope()
◆ getTimeout()
◆ getUseSecureConnection()
bool getUseSecureConnection |
( |
| ) |
const |
Indicates if the server uses a secure connection.
- Returns
- Returns true if the server is communicated with over a secure socket.
◆ operator!=()
bool operator!= |
( |
const Server & |
rhs | ) |
const |
The inequality operator.
- Returns
- Returns true if the servers are equivalent.
◆ operator=()
The assignment operator.
- Parameters
-
◆ operator==()
bool operator== |
( |
const Server & |
rhs | ) |
const |
The equality operator.
- Parameters
-
rhs | the server to compare an instance against. |
◆ setAuthenticationCredentials()
void setAuthenticationCredentials |
( |
const QString & |
credentials | ) |
|
Sets the authentication credentials.
- Parameters
-
credentials | The credentials to set. |
◆ setAuthenticationProvider()
void setAuthenticationProvider |
( |
const QString & |
method | ) |
|
|
inline |
◆ setAuthenticationProviderVersion()
void setAuthenticationProviderVersion |
( |
const QString & |
version | ) |
|
|
inline |
◆ setConcurrencyCount()
void setConcurrencyCount |
( |
int |
cpuCount | ) |
|
|
inline |
◆ setEnabled()
void setEnabled |
( |
bool |
val | ) |
|
Specifies that the server is enabled.
- Parameters
-
val | Indicates the server is enabled. |
◆ setHostName()
void setHostName |
( |
const QString & |
host | ) |
|
Sets the host address.
- Parameters
-
host | The host name to set. |
◆ setPort()
void setPort |
( |
const quint16 |
port | ) |
|
|
inline |
◆ setScope()
void setScope |
( |
const Scope |
scope | ) |
|
|
inline |
◆ setTimeout()
void setTimeout |
( |
int |
timeout | ) |
|
|
inline |
◆ setUseSecureConnection()
void setUseSecureConnection |
( |
bool |
val | ) |
|
Specifies that the server use a secure connection for communication.
- Parameters
-
val | Indicates the server communicate over a secure socket. |
◆ defaultCpuCount
◆ defaultHost
QString defaultHost = "127.0.0.1" |
|
static |
◆ defaultPort
quint16 defaultPort = 42150 |
|
static |
◆ defaultScope
◆ defaultTimeout
int defaultTimeout = 3000 |
|
static |