AXIAM C++ SDK 1.0.0-alpha8
Authentication, authorization, JWKS & route guards (REST + mTLS)
Loading...
Searching...
No Matches
Public Member Functions | Friends | List of all members
axiam::Sensitive< T > Class Template Reference

Wraps secret material (access tokens, mTLS private keys). More...

#include <sensitive.hpp>

Public Member Functions

 Sensitive ()=default
 
 Sensitive (T value)
 
 Sensitive (const Sensitive &)=default
 
 Sensitive (Sensitive &&) noexcept=default
 
Sensitiveoperator= (const Sensitive &)=default
 
Sensitiveoperator= (Sensitive &&) noexcept=default
 
std::string to_string () const
 Redacted textual form. Never emits the wrapped value.
 
bool empty () const
 True when no secret is held (default-constructed / empty string).
 

Friends

const T & detail::reveal (const Sensitive< T > &s) noexcept
 

Detailed Description

template<typename T>
class axiam::Sensitive< T >

Wraps secret material (access tokens, mTLS private keys).

Its string / stream representation is always the redacted placeholder "[SENSITIVE]"; the raw value is reachable only through the friend accessor axiam::detail::reveal().

Constructor & Destructor Documentation

◆ Sensitive() [1/4]

template<typename T >
axiam::Sensitive< T >::Sensitive ( )
default

◆ Sensitive() [2/4]

template<typename T >
axiam::Sensitive< T >::Sensitive ( T  value)
inlineexplicit

◆ Sensitive() [3/4]

template<typename T >
axiam::Sensitive< T >::Sensitive ( const Sensitive< T > &  )
default

◆ Sensitive() [4/4]

template<typename T >
axiam::Sensitive< T >::Sensitive ( Sensitive< T > &&  )
defaultnoexcept

Member Function Documentation

◆ operator=() [1/2]

template<typename T >
Sensitive & axiam::Sensitive< T >::operator= ( const Sensitive< T > &  )
default

◆ operator=() [2/2]

template<typename T >
Sensitive & axiam::Sensitive< T >::operator= ( Sensitive< T > &&  )
defaultnoexcept

◆ to_string()

template<typename T >
std::string axiam::Sensitive< T >::to_string ( ) const
inline

Redacted textual form. Never emits the wrapped value.

◆ empty()

template<typename T >
bool axiam::Sensitive< T >::empty ( ) const
inline

True when no secret is held (default-constructed / empty string).

Friends And Related Symbol Documentation

◆ detail::reveal

template<typename T >
const T & detail::reveal ( const Sensitive< T > &  s)
friend

The documentation for this class was generated from the following file: