MySQL 5.6.14 Source Code Document
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
Sid Class Reference

#include <common.h>

Public Member Functions

 Sid (const wchar_t *)
 Sid (HANDLE sec_token)
bool is_valid (void) const
 Check if Sid object is valid.
bool is_group (void) const
bool is_user (void) const
bool operator== (const Sid &)
 operator PSID () const
const char * as_string ()

Detailed Description

Sid class Class for storing and manipulating Windows security identifiers (SIDs).

Definition at line 243 of file common.h.

Constructor & Destructor Documentation

Sid::Sid ( const wchar_t *  account_name)

Sid class Create Sid object corresponding to a given account name.

Parameters
[in]account_namename of a Windows account

The account name can be in any form accepted by LookupAccountName() function.

Note
In case of errors created object is invalid and its is_valid() method returns false.

Definition at line 122 of file common.cc.

Here is the call graph for this function:

Sid::Sid ( HANDLE  token)

Create Sid object corresponding to a given security token.

Parameters
[in]tokensecurity token of a Windows account
Note
In case of errors created object is invalid and its is_valid() method returns false.

Definition at line 191 of file common.cc.

Here is the call graph for this function:

Member Function Documentation

const char * Sid::as_string ( )

Produces string representation of the SID.

Returns
String representation of the SID or NULL in case of errors.
Note
Memory allocated for the string is automatically freed in Sid's destructor.

Definition at line 261 of file common.cc.


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