osl::Security Class Reference
capsulate security informations for one user.
More...
#include <security_decl.hxx>
List of all members.
Detailed Description
capsulate security informations for one user.
A object of this class is used to execute a process with the rights an security options of a scecified user.
- See also:
- Process::executeProcess
Constructor & Destructor Documentation
osl::Security::Security |
( |
|
) |
[inline] |
osl::Security::~Security |
( |
|
) |
[inline] |
Member Function Documentation
get the directory for configuration data of the logged in user.
- Parameters:
-
[out] | strDirectory | is the OUString which returns the directory name |
- Returns:
- True, if any user is successfuly logged in, otherwise False
oslSecurity osl::Security::getHandle |
( |
|
) |
const [inline] |
Returns the underlying oslSecurity handle.
get the home directory of the logged in user.
- Parameters:
-
[out] | strDirectory | is the OUString which returns the directory name |
- Returns:
- True, if any user is successfuly logged in, otherwise False
get the ident of the logged in user.
- Parameters:
-
[out] | strIdent | is the OUString which returns the name |
- Returns:
- True, if any user is successfuly logged in, otherwise False
get the name of the logged in user.
- Parameters:
-
[out] | strName | is the OUString which returns the name |
- Returns:
- True, if any user is successfuly logged in, otherwise False
sal_Bool osl::Security::isAdministrator |
( |
|
) |
const [inline] |
Query if the user who is logged inhas administrator rigths.
- Returns:
- True, if the user has administrator rights, otherwise false.
get the security information for one user.
This method will try to login the user at the denoted file server. If a network resource named \server exists and this resource could be connected by this user, the methos will return true and getHomeDir will return \server.
- Parameters:
-
[in] | strName | denotes the name of the user |
[in] | strPasswd | denotes the password of this user |
- Returns:
- True, if the specified user is known by file server and the could be connected, otherwise False
get the security information for one user.
The underlying operating system is asked for this information.
- Parameters:
-
[in] | strName | denotes the name of the user |
[in] | strPasswd | denotes the password of this user |
- Returns:
- True, if the specified user is known by the underlying operating system, otherwise False
Member Data Documentation
The documentation for this class was generated from the following files: