| |
|
| org.objectweb.jonas.jtests.util.JTestCase org.objectweb.jonas.jtests.clients.security.A_AccessControl
All known Subclasses: org.objectweb.jonas.jtests.clients.security.F_AccessControlEC2, org.objectweb.jonas.jtests.clients.security.F_AccessControlEC, org.objectweb.jonas.jtests.clients.security.F_AccessControlSL,
A_AccessControl | abstract public class A_AccessControl extends JTestCase (Code) | | Security Management common tests for all type of beans (Entity/Session)
author: Ph.Coq, Ph.Durieux |
PRINCIPAL1_NAME | protected static String PRINCIPAL1_NAME(Code) | | |
PRINCIPAL3_NAME | protected static String PRINCIPAL3_NAME(Code) | | |
setUp | protected void setUp()(Code) | | init environment:
- load beans
|
testBasicMethodAccept | public void testBasicMethodAccept() throws Exception(Code) | | test basic method accept
|
testBasicMethodAcceptRolesInContext | public void testBasicMethodAcceptRolesInContext() throws Exception(Code) | | test basic method accept
|
testBasicMethodReject | public void testBasicMethodReject() throws Exception(Code) | | test basic method reject
|
testBasicMethodRejectRolesInContext | public void testBasicMethodRejectRolesInContext() throws Exception(Code) | | test basic method reject
|
testBeanToBeanPropagation | public void testBeanToBeanPropagation() throws Exception(Code) | | test principal propagation from bean to bean
|
testBeanToBeanPropagationRolesInContext | public void testBeanToBeanPropagationRolesInContext() throws Exception(Code) | | test principal propagation from bean to bean
|
testComplexMethodAccept | public void testComplexMethodAccept() throws Exception(Code) | | test complex method accept
|
testComplexMethodAcceptRolesInContext | public void testComplexMethodAcceptRolesInContext() throws Exception(Code) | | test complex method accept
|
testComplexMethodReject | public void testComplexMethodReject() throws Exception(Code) | | test complex method reject
|
testComplexMethodRejectRolesInContext | public void testComplexMethodRejectRolesInContext() throws Exception(Code) | | test complex method reject
|
testExcludedMethod | public void testExcludedMethod() throws Exception(Code) | | test on an exluded method (excluded list)
|
testGetCallerPrincipal | public void testGetCallerPrincipal() throws Exception(Code) | | test getCallerPrincipal.
The Principal must be propagated.
|
testIsCallerInRole | public void testIsCallerInRole() throws Exception(Code) | | test isCallerInRole.
principal1 = role1
principal2 = role2
|
testIsCallerInRoleRolesInContext | public void testIsCallerInRoleRolesInContext() throws Exception(Code) | | test testIsCallerInRoleRolesInContext.
principal1 = role1 (jonas-users.properties)
principal2 = role2 (jonas-users.properties)
principal3 = role1, role3 (role with security context)
principal4 = role2 (role with security context)
|
testLocalMethodAccept | public void testLocalMethodAccept() throws Exception(Code) | | test accept access to a local method
callAnotherMethod is called with role1 and call DerivedSF.anotheMethod with this role
return false if access to anotheMethod was denied
expected return is true
|
testLocalMethodAcceptRolesInContext | public void testLocalMethodAcceptRolesInContext() throws Exception(Code) | | test accept access to a local method
callAnotherMethod is called with role1 and call DerivedSF.anotheMethod with this role
return false if access to anotheMethod was denied
expected return is true
|
testLocalMethodReject | public void testLocalMethodReject() throws Exception(Code) | | test reject access to a local method
callAnotherMethod is called with role1 and call DerivedSF.anotheMethod with this role
return false if access to anotheMethod was denied
expected return is true
|
testLocalMethodRejectRolesInContext | public void testLocalMethodRejectRolesInContext() throws Exception(Code) | | test reject access to a local method
callAnotherMethod is called with role1 and call DerivedSF.anotheMethod with this role
return false if access to anotheMethod was denied
expected return is true
|
testRejectBeanToBeanAccess | public void testRejectBeanToBeanAccess() throws Exception(Code) | | test principal propagation from bean to bean and access is denied
|
testRejectBeanToBeanAccessRolesInContext | public void testRejectBeanToBeanAccessRolesInContext() throws Exception(Code) | | test principal propagation from bean to bean and access is denied
|
testSecurityRoleRef | public void testSecurityRoleRef() throws Exception(Code) | | test security-role-ref in DD
baserole -> role1
|
testSecurityRoleRefRolesInContext | public void testSecurityRoleRefRolesInContext() throws Exception(Code) | | test security-role-ref in DD
baserole -> role1
|
|
|
|