Lines Matching refs:perm
133 connection::SocketPermission const & perm,
136 virtual bool implies( Permission const & perm ) const SAL_THROW( () );
143 connection::SocketPermission const & perm, in SocketPermission() argument
147 , m_actions( makeMask( perm.Actions, s_actions ) ) in SocketPermission()
148 , m_host( perm.Host ) in SocketPermission()
153 , m_wildCardHost( perm.Host.getLength() && '*' == perm.Host.pData->buffer[ 0 ] ) in SocketPermission()
210 bool SocketPermission::implies( Permission const & perm ) const SAL_THROW( () ) in implies()
213 if (SOCKET != perm.m_type) in implies()
215 SocketPermission const & demanded = static_cast< SocketPermission const & >( perm ); in implies()
298 io::FilePermission const & perm,
301 virtual bool implies( Permission const & perm ) const SAL_THROW( () );
326 io::FilePermission const & perm, in FilePermission() argument
330 , m_actions( makeMask( perm.Actions, s_actions ) ) in FilePermission()
331 , m_url( perm.URL ) in FilePermission()
332 , m_allFiles( sal_False != perm.URL.equalsAsciiL(RTL_CONSTASCII_STRINGPARAM("<<ALL FILES>>")) ) in FilePermission()
355 getWorkingDir().pData, perm.URL.pData, &out.pData ); in FilePermission()
356 m_url = (osl_File_E_None == rc ? out : perm.URL); // fallback in FilePermission()
370 bool FilePermission::implies( Permission const & perm ) const SAL_THROW( () ) in implies()
373 if (FILE != perm.m_type) in implies()
375 FilePermission const & demanded = static_cast< FilePermission const & >( perm ); in implies()
451 security::RuntimePermission const & perm, in RuntimePermission() argument
455 , m_name( perm.Name ) in RuntimePermission()
457 virtual bool implies( Permission const & perm ) const SAL_THROW( () );
461 bool RuntimePermission::implies( Permission const & perm ) const SAL_THROW( () ) in implies()
464 if (RUNTIME != perm.m_type) in implies()
466 RuntimePermission const & demanded = static_cast< RuntimePermission const & >( perm ); in implies()
506 Any const & perm = perms[ nPos ]; in PermissionCollection() local
507 Type const & perm_type = perm.getValueType(); in PermissionCollection()
513 *reinterpret_cast< io::FilePermission const * >( perm.pData ), m_head ); in PermissionCollection()
518 *reinterpret_cast< connection::SocketPermission const * >( perm.pData ), m_head ); in PermissionCollection()
523 *reinterpret_cast< security::RuntimePermission const * >( perm.pData ), m_head ); in PermissionCollection()
546 for ( Permission * perm = m_head.get(); perm; perm = perm->m_next.get() ) in toStrings() local
548 strings.push_back( perm->toString() ); in toStrings()
558 for ( Permission * perm = head.get(); perm; perm = perm->m_next.get() ) in __implies() local
560 if (perm->implies( demanded )) in __implies()
569 Permission const & perm ) in demanded_diag() argument
574 buf.append( perm.toString() ); in demanded_diag()
583 Permission const & perm, Any const & demanded_perm ) in throwAccessControlException() argument
588 buf.append( perm.toString() ); in throwAccessControlException()
593 void PermissionCollection::checkPermission( Any const & perm ) const in checkPermission()
596 Type const & demanded_type = perm.getValueType(); in checkPermission()
604 *reinterpret_cast< io::FilePermission const * >( perm.pData ) ); in checkPermission()
612 throwAccessControlException( demanded, perm ); in checkPermission()
617 *reinterpret_cast< connection::SocketPermission const * >( perm.pData ) ); in checkPermission()
625 throwAccessControlException( demanded, perm ); in checkPermission()
630 *reinterpret_cast< security::RuntimePermission const * >( perm.pData ) ); in checkPermission()
638 throwAccessControlException( demanded, perm ); in checkPermission()
650 throwAccessControlException( demanded, perm ); in checkPermission()