Security and authentication related functionality
More...
Security and authentication related functionality
This namespace contains functionality for authenticating clients, checking access rights of clients, and other security related functionality.
◆ DigestType
Message digest types.
- Include file
#include <xentara/security/DigestType.hpp>
| Enumerator |
|---|
| Sha256 | A digest generated using the SHA-256 hash algorithm.
|
| Sha384 | A digest generated using the SHA-384 hash algorithm.
|
| Sha512 | A digest generated using the SHA-512 hash algorithm.
|
◆ Error
Security error codes.
| Enumerator |
|---|
| NoError | No error occurred.
|
| AccessDenied | Access to a protected resource was Denied.
|
| MissingAuthorizationHeader | An HTTP request contained no “Authorization” header field.
|
| DuplicateAuthorizationHeader | An HTTP request contained more than one “Authorization” header field.
|
| DuplicateOriginHeader | An HTTP request contained more than one “Origin” header field.
|
| OriginNotAllowed | The origin of an HTTP request did not match any of the configured allowed origins.
|
◆ httpResponseCode() [1/2]
Gets the appropriate HTTP response code for an error code.
◆ httpResponseCode() [2/2]
Gets the appropriate HTTP response code for an arbitrary error code.
◆ make_error_code()
Creates an error code object from an error code of type [Error].
◆ operator<<()
Stream insertion operator for qualities.
- Include file
#include <xentara/security/DigestType.hpp>
- Parameters
-
| stream | The stream |
| digestType | The digest type |
- Returns
- The stream
◆ toBasicString()
template<utils::tools::CharType Char>
Converts a digest type to a string.
- Include file
#include <xentara/security/DigestType.hpp>
- Parameters
-
| digestType | The digest type |
- Returns
- A string containing the digest type as a UTF-8 text
◆ toString()
Converts a digest type to a string of type char
- Include file
#include <xentara/security/DigestType.hpp>
- Parameters
-
| digestType | The digest type |
- Returns
- A string containing the digest type
◆ toU16String()
Converts a digest type to a string of type char16_t
- Include file
#include <xentara/security/DigestType.hpp>
- Parameters
-
| digestType | The digest type |
- Returns
- A string containing the digest type
◆ toU32String()
Converts a number to a string of type char32_t
- Include file
#include <xentara/security/DigestType.hpp>
- Parameters
-
| digestType | The digest type |
- Returns
- A string containing the digest type
◆ toU8String()
Converts a digest type to a string of type char8_t
- Include file
#include <xentara/security/DigestType.hpp>
- Parameters
-
| digestType | The digest type |
- Returns
- A string containing the digest type
◆ toWString()
Converts a digest type to a string of type wchar_t
- Include file
#include <xentara/security/DigestType.hpp>
- Parameters
-
| digestType | The digest type |
- Returns
- A string containing the digest type