Retrieve the security descriptor described by the binary ``data``. Binary security descriptor can be found in the registry for example
(cls, data)
| 930 | |
| 931 | @classmethod |
| 932 | def from_binary(cls, data): |
| 933 | """Retrieve the security descriptor described by the binary ``data``. |
| 934 | Binary security descriptor can be found in the registry for example |
| 935 | """ |
| 936 | if isinstance(data, basestring): |
| 937 | data = ctypes.c_buffer(data) |
| 938 | return ctypes.cast(data, cls) |
| 939 | |
| 940 | def to_string(self, security_information=DEFAULT_SECURITY_INFORMATION): |
| 941 | """Return the SDDL representation of the security descriptor |
no test coverage detected