MySQL  8.0.19
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

◆ as_string()

const char* UPN::as_string ( ) const

◆ is_valid()

bool UPN::is_valid ( ) const

Member Data Documentation

◆ m_buf

char* UPN::m_buf

Pointer to UPN in utf8 representation.

◆ m_len

size_t UPN::m_len

Length of the name.

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