xentara-plugin v2.0.4
The Xentara Plugin Framework
|
A security context. More...
#include <xentara/security/Context.hpp>
Public Member Functions | |
internal auto | serverCertificate () const -> CertificatePaths |
Gets the paths for the TLS server certificate. | |
auto | entitlement (std::string_view name) const -> const Entitlement & |
Gets the entitlement with a specific name. | |
auto | entitlement (const utils::core::Uuid &uuid) const -> const Entitlement & |
Gets the entitlement with a specific UUID. | |
auto | findEntitlement (std::string_view name) const -> const Entitlement * |
Finds the entitlement with a specific name, returning nullptr on error. | |
auto | findEntitlement (const utils::core::Uuid &uuid) const -> const Entitlement * |
Finds the entitlement with a specific UUID, returning nullptr on error. | |
auto | oauth2Authenticator () const -> const Oauth2Authenticator & |
Gets the authenticator for Oauth2 compatible JSON web tokens. | |
auto | certificateAuthenticator () const -> const CertificateAuthenticator & |
Gets the authenticator for certificate-based user authentication. | |
auto | passwordAuthenticator () const -> const PasswordAuthenticator & |
Gets the authenticator for user name/password authentication. | |
auto | httpAuthenticator () const -> const HttpAuthenticator & |
Gets the authenticator that should be used for authenticating HTTP requests. | |
A security context.
This class provides access to security related functions.
auto xentara::security::Context::certificateAuthenticator | ( | ) | const -> const CertificateAuthenticator & |
Gets the authenticator for certificate-based user authentication.
auto xentara::security::Context::entitlement | ( | const utils::core::Uuid & | uuid | ) | const -> const Entitlement & |
Gets the entitlement with a specific UUID.
uuid | The UUID of desired entitlement. |
auto xentara::security::Context::entitlement | ( | std::string_view | name | ) | const -> const Entitlement & |
Gets the entitlement with a specific name.
name | The name of desired entitlement, in UTF-8 encoding. |
auto xentara::security::Context::findEntitlement | ( | const utils::core::Uuid & | uuid | ) | const -> const Entitlement * |
Finds the entitlement with a specific UUID, returning nullptr on error.
uuid | The UUID of desired entitlement. |
auto xentara::security::Context::findEntitlement | ( | std::string_view | name | ) | const -> const Entitlement * |
Finds the entitlement with a specific name, returning nullptr on error.
name | The name of desired entitlement, in UTF-8 encoding. |
auto xentara::security::Context::httpAuthenticator | ( | ) | const -> const HttpAuthenticator & |
Gets the authenticator that should be used for authenticating HTTP requests.
auto xentara::security::Context::oauth2Authenticator | ( | ) | const -> const Oauth2Authenticator & |
Gets the authenticator for Oauth2 compatible JSON web tokens.
auto xentara::security::Context::passwordAuthenticator | ( | ) | const -> const PasswordAuthenticator & |
Gets the authenticator for user name/password authentication.
internal auto xentara::security::Context::serverCertificate | ( | ) | const -> CertificatePaths |
Gets the paths for the TLS server certificate.
std::runtime_error | One or both of the files do not exist |