Method Summary |
|
public static Test | suite() Setup the test suite. |
public void | testDeepRunAs() This method tests the following call chain:
Level1CallerBean.callEcho() -> Level2CallerBean.invokeEcho()
-> Level3CalleeBean.echo()
The Level1CallerBean uses a run-as of InternalRole and the Level2CallerBean
and Level3CalleeBean are only accessible by InternalRole. |
public void | testDomainInteraction() |
public void | testDomainMethodAccess() Test that the echo method is accessible by an Echo
role. |
public void | testExcluded() Test that user scott who has the Echo role is not able to
access the StatelessSession2.excluded method even though
the Echo role has been granted access to all methods of
StatelessSession2 to test that the excluded-list takes
precendence over the method-permissions. |
public void | testGetCallerPrincipal() Test that:
1. |
public void | testHandle() Test the security behavior of handles. |
public void | testJBAS1852() |
public void | testLocalMethodAccess() Test a user with Echo and EchoLocal roles can access the CalleeBean
through its local interface by calling the CallerBean and that a user
with only a EchoLocal cannot call the CallerBean. |
public void | testMDBDeepRunAs() Test that an MDB with a run-as identity is able to access secure EJBs
that require the identity. |
public void | testMDBRunAs() Test that an MDB with a run-as identity is able to access secure EJBs
that require the identity. |
public void | testMethodAccess() Test that the echo method is accessible by an Echo
role. |
public void | testMethodAccess2() Test that the permissions assigned to the stateless session bean:
with ejb-name=org/jboss/test/security/ejb/StatelessSession_test
are read correctly. |
public void | testPrincipalPropagation() Test that the calling principal is propagated across bean calls. |
public void | testRemoteUnchecked() Test access to a bean with a mix of remote interface permissions and
unchecked permissions with the unchecked permissions declared last. |
public void | testRunAs() This method tests the following call chains:
1. |
public void | testRunAsSFSB() |
public void | testRunAsWithRoles() This method tests that the RunAsWithRolesMDB is assigned multiple roles
within its onMessage so that it can call into the ProjRepository session
bean's methods that required ProjectAdmin, CreateFolder and DeleteFolder
roles. |
public void | testSecurityDomain() Validate that the users have the expected logins and roles. |
public void | testStatefulCreateCaller() |
public void | testStatefulHandle() Test the security behavior of stateful handles. |
public void | testStress() Stress test declarative security. |
public void | testStressNoJaasCache() Stress test declarative security with the JAAS cache disabled. |
public void | testUnchecked() Test that a user with a role that has not been assigned any
method permissions in the ejb-jar descriptor is able to access a
method that has been marked as unchecked. |
public void | testUncheckedRemote() Test access to a bean with a mix of remote interface permissions and
unchecked permissions with the unchecked permissions declared first. |
public void | testUncheckedWithLogin() Test that a user with a valid role is able to access a
bean for which all methods have been marked as unchecked. |