MySQL 9.1.0
Source Code Documentation
UPN Class Reference

UPN class. More...

#include <common.h>

Public Member Functions

 UPN ()
 Generating User Principal Name. More...
 
 ~UPN ()
 
bool is_valid () const
 
const Blob as_blob () const
 
const char * as_string () const
 

Private Attributes

char * m_buf
 Pointer to UPN in utf8 representation. More...
 
size_t m_len
 Length of the name. More...
 

Detailed Description

UPN class.

An object of this class obtains and stores User Principal Name of the account under which current process is running.

Constructor & Destructor Documentation

◆ UPN()

UPN::UPN ( )

Generating User Principal Name.

Call Windows API functions to get UPN of the current user and store it in internal buffer.

◆ ~UPN()

UPN::~UPN ( )

Member Function Documentation

◆ as_blob()

const Blob UPN::as_blob ( ) const
inline

◆ as_string()

const char * UPN::as_string ( ) const
inline

◆ is_valid()

bool UPN::is_valid ( void  ) const
inline

Member Data Documentation

◆ m_buf

char* UPN::m_buf
private

Pointer to UPN in utf8 representation.

◆ m_len

size_t UPN::m_len
private

Length of the name.


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