Struct CredentialNamespace

Stable name for one application's credential domain.

struct CredentialNamespace;

Use a reverse-DNS-style value and keep it stable across application runs. Different namespaces intentionally cannot use each other's handles.

Constructors

NameDescription
this (text) Create the namespace used by application code.

Properties

NameTypeDescription
valid[get] boolWhether this value contains a usable namespace.

Methods

NameDescription
serialize () Return the namespace text for persistence or display in diagnostics.
tryParse (text, result) Restore or validate a namespace without throwing.

Examples

auto ns = CredentialNamespace("org.example.application");
auto store = new LinuxCredentialStore(ns);