This class is used for authorization of arbitrary operations.
More...
#include <SecurityToken.hpp>
|
static Value | GetNone (void) |
| Gets the None value meaning that the authentification is lacking. More...
|
|
static size_t | GetSize (void) |
| Gets the data size of the security token value. More...
|
|
This class is used for authorization of arbitrary operations.
The identifies a user session, which was created by the user manager.
◆ SecurityToken() [1/2]
Arp::Base::Commons::Security::SecurityToken::SecurityToken |
( |
Value |
value = GetNone() | ) |
|
Constructs a SecurityToken instance.
- Parameters
-
value | Specifies the initial security token value. |
◆ SecurityToken() [2/2]
Arp::Base::Commons::Security::SecurityToken::SecurityToken |
( |
SecurityToken && |
arg | ) |
|
|
defaultnoexcept |
The default move constructor.
- Parameters
-
◆ GetImpl()
const SecurityToken::Impl & Arp::Base::Commons::Security::SecurityToken::GetImpl |
( |
void |
| ) |
|
For internal use only.
- Returns
- The impl instance.
◆ GetNone()
SecurityToken::Value Arp::Base::Commons::Security::SecurityToken::GetNone |
( |
void |
| ) |
|
|
static |
Gets the None value meaning that the authentification is lacking.
- Returns
- The None value.
◆ GetSize()
size_t Arp::Base::Commons::Security::SecurityToken::GetSize |
( |
void |
| ) |
|
|
static |
Gets the data size of the security token value.
- Returns
- The data size of the security token value.
◆ GetValue()
SecurityToken::Value Arp::Base::Commons::Security::SecurityToken::GetValue |
( |
void |
| ) |
const |
Gets the value of this security token.
- Returns
- The value of this security token.
◆ HasValue()
bool Arp::Base::Commons::Security::SecurityToken::HasValue |
( |
void |
| ) |
const |
Determines if this instance is initialized but not None.
- Returns
◆ operator=() [1/2]
THe default copy-assignment operator.
- Parameters
-
- Returns
- This instance.
◆ operator=() [2/2]
The default move-assignment operator.
- Parameters
-
- Returns
- This instance.
◆ ToString()
String Arp::System::Security::SecurityToken::ToString |
( |
void |
| ) |
const |
Converts this security token to a string.
- Returns
- The string reprsentation of this security token.
◆ operator<
The less operator compares 2 SecurityTokens.
- Parameters
-
lhs | The left argument to compare to the right argument. |
rhs | The right argument to compare to the left argument. |
- Returns
true
if the left arguments is less than the right argument, otherwise false
.
◆ operator==
The equality operator compares 2 SecurityTokens.
- Parameters
-
lhs | The left argument to compare to the right argument. |
rhs | The right argument to compare to the left argument. |
- Returns
true
if the arguments are equal, otherwise false
.
The documentation for this class was generated from the following files:
- Arp/Base/Commons/Security/SecurityToken.hpp
- Arp/Base/Commons/Security/SecurityToken.cpp
- Arp/System/Security/SecurityToken.cpp