(incubating) | The Free and Open Productivity Suite
 Overview   Namespace   Class   Index   Help 
PUBLIC MEMBERS:  CLASSESSTRUCTSUNIONSENUMSTYPEDEFSMETHODSSTATIC METHODSDATASTATIC DATA
PROTECTED MEMBERS:  CLASSESSTRUCTSUNIONSENUMSTYPEDEFSMETHODSSTATIC METHODSDATASTATIC DATA

:: osl ::

class Security


Base Classes
None.
Known Derived Classes
None.

virtual abstract interface template
NO NO NO NO
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
File
security_decl.hxx

Public Members

Methods


Security( );
constructor

~Security( );
destructor
sal_Bool
logonUser( const ::rtl::OUString & strName, const ::rtl::OUString & strPasswd );
get the security information for one user. The underlying operating system is asked for this information.
sal_Bool
logonUser( const ::rtl::OUString & strName, const ::rtl::OUString & strPasswd, const ::rtl::OUString & strFileServer );
sal_Bool
getUserIdent( ::rtl::OUString & strIdent ) const;
get the ident of the logged in user.
sal_Bool
getUserName( ::rtl::OUString & strName ) const;
get the name of the logged in user.
sal_Bool
getHomeDir( ::rtl::OUString & strDirectory ) const;
get the home directory of the logged in user.
sal_Bool
getConfigDir( ::rtl::OUString & strDirectory ) const;
get the directory for configuration data of the logged in user.
sal_Bool
isAdministrator( ) const;
Query if the user who is logged inhas administrator rigths.
oslSecurity
getHandle( ) const;
Returns the underlying oslSecurity handle

Protected Members

Data

oslSecurity m_handle;

Top of Page

Apache OpenOffice is an effort undergoing incubation at The Apache Software Foundation (ASF), sponsored by the Apache Incubator. Incubation is required of all newly accepted projects until a further review indicates that the infrastructure, communications, and decision making process have stabilized in a manner consistent with other successful ASF projects. While incubation status is not necessarily a reflection of the completeness or stability of the code, it does indicate that the project has yet to be fully endorsed by the ASF.

Copyright & License
Apache and the Apache feather logos are trademarks of The Apache Software Foundation. OpenOffice.org and the seagull logo are registered trademarks of The Apache Software Foundation. Other names appearing on the site may be trademarks of their respective owners.