Moved lookup_sid to windows.utils + add Token to window.security + update doc about official Token path

This commit is contained in:
hakril
2018-12-21 18:50:22 +01:00
parent fb567c6a76
commit 4f62434dfb
8 changed files with 43 additions and 18 deletions
+11
View File
@@ -18,6 +18,17 @@ This module give access to :class:`SecurityDescriptor` and related structures (`
See sample :ref:`sample_security`
Token
"""""
The :mod:`windows.security` module is the official module where to retrieve the :class:`~windows.winobject.token.Token` class if ever needed.
Indeed ``SecurityDescriptor`` & ``Token`` are deeply related and I may move ``token.py`` to a ``security/`` directory in the futur.
>>> windows.security.Token
<class 'windows.winobject.token.Token'>
SecurityDescriptor
""""""""""""""""""
+9
View File
@@ -9,6 +9,15 @@ This module expose the :class:`Token` object that can be primarily retrieved th
* :data:`windows.winobject.process.WinThread.token`
* :data:`windows.current_process.token <windows.winobject.process.CurrentProcess.token>`
* :data:`windows.current_thread.token <windows.winobject.process.CurrentThread.token>`
* :class:`windows.security.Token`
.. note::
If you need to directly access the :class:`Token` class, please use :class:`windows.security.Token` as the
path of ``token.py`` may change.
Indeed ``SecurityDescriptor`` & ``Token`` are deeply related and I may move ``token.py`` to a
``security/`` directory in the futur.
.. note::