23#include <com/sun/star/security/XAccessController.hpp>
24#include <com/sun/star/security/RuntimePermission.hpp>
25#include <com/sun/star/io/FilePermission.hpp>
26#include <com/sun/star/connection/SocketPermission.hpp>
27#include <com/sun/star/uno/XComponentContext.hpp>
42 throw SecurityException(
"no access controller!" );
47 Reference< security::XAccessController >
const &
xController )
50 if (! m_xController.is())
52 throw SecurityException(
"no access controller!" );
57 : m_xController( ac.m_xController )
59 if (! m_xController.is())
61 throw SecurityException(
"no access controller!" );
81 Reference< security::XAccessController >
const & xController,
82 Type const & type, rtl_uString * str1, rtl_uString * str2 )
89 a.pType =
type.getTypeLibType();
98 OUString
const & name )
106 OUString
const & url,
107 OUString
const & actions )
115 OUString
const & host,
116 OUString
const & actions )
constexpr OUStringLiteral ACCESS_CONTROLLER_SINGLETON
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.
void SAL_CALL checkRuntimePermission(::rtl::OUString const &name)
A com.sun.star.security.RuntimePermission is for runtime permissions.
AccessControl(css::uno::Reference< css::uno::XComponentContext > const &xContext)
Ctor.
css::uno::Reference< css::security::XAccessController > m_xController
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.
Reference< XController > xController