|
LibreOffice Module cppuhelper (master) 1
|
Helper class for retrieving access controller singleton from component context. More...
#include <access_control.hxx>
Public Member Functions | |
| AccessControl (css::uno::Reference< css::uno::XComponentContext > const &xContext) | |
| Ctor. More... | |
| AccessControl (css::uno::Reference< css::security::XAccessController > const &xController) | |
| Ctor. More... | |
| AccessControl (::cppu::AccessControl const &ac) | |
| Copy ctor. More... | |
| void SAL_CALL | clear () |
| Clears the access controller reference being used. More... | |
| css::uno::Reference< css::security::XAccessController > const &SAL_CALL | get () const |
| Returns access to the access controller reference being used. More... | |
| css::security::XAccessController *SAL_CALL | operator-> () const |
| Returns access to the access controller reference being used. More... | |
| void SAL_CALL | checkRuntimePermission (::rtl::OUString const &name) |
| A com.sun.star.security.RuntimePermission is for runtime permissions. More... | |
| void SAL_CALL | checkFilePermission (::rtl::OUString const &url, ::rtl::OUString const &actions) |
| A com.sun.star.io.FilePermission represents access to a file or directory. More... | |
| void SAL_CALL | checkSocketPermission (::rtl::OUString const &host, ::rtl::OUString const &actions) |
| A com.sun.star.connection.SocketPermission represents access to a network via sockets. More... | |
Private Attributes | |
| css::uno::Reference< css::security::XAccessController > | m_xController |
Helper class for retrieving access controller singleton from component context.
Definition at line 37 of file access_control.hxx.
| cppu::AccessControl::AccessControl | ( | css::uno::Reference< css::uno::XComponentContext > const & | xContext | ) |
Ctor.
| xContext | component context to retrieve access controller singleton |
| cppu::AccessControl::AccessControl | ( | css::uno::Reference< css::security::XAccessController > const & | xController | ) |
Ctor.
| xController | access controller |
| cppu::AccessControl::AccessControl | ( | ::cppu::AccessControl const & | ac | ) |
Copy ctor.
| ac | another object |
| void cppu::AccessControl::checkFilePermission | ( | ::rtl::OUString const & | url, |
| ::rtl::OUString const & | actions | ||
| ) |
A com.sun.star.io.FilePermission represents access to a file or directory.
A FilePermission consists of a file url and a set of actions valid for that pathname.
| url | file url |
| actions | actions list |
Definition at line 105 of file access_control.cxx.
References m_xController.
| void cppu::AccessControl::checkRuntimePermission | ( | ::rtl::OUString const & | name | ) |
A com.sun.star.security.RuntimePermission is for runtime permissions.
A RuntimePermission contains a name (also referred to as a "target name") but no actions list; you either have the named permission or you don't.
| name | name of permission |
Definition at line 97 of file access_control.cxx.
References m_xController, and name.
| void cppu::AccessControl::checkSocketPermission | ( | ::rtl::OUString const & | host, |
| ::rtl::OUString const & | actions | ||
| ) |
A com.sun.star.connection.SocketPermission represents access to a network via sockets.
A SocketPermission consists of a host specification and a set of "actions" specifying ways to connect to that host.
| host | host and optional portrange |
| actions | actions list |
Definition at line 114 of file access_control.cxx.
References m_xController.
|
inline |
Clears the access controller reference being used.
Definition at line 66 of file access_control.hxx.
|
inline |
Returns access to the access controller reference being used.
Definition at line 73 of file access_control.hxx.
|
inline |
Returns access to the access controller reference being used.
Definition at line 80 of file access_control.hxx.
|
private |
Definition at line 39 of file access_control.hxx.
Referenced by checkFilePermission(), checkRuntimePermission(), and checkSocketPermission().