| java.lang.Object org.ow2.easybeans.tests.common.ejbs.base.security.SecurityRolesBase
All known Subclasses: org.ow2.easybeans.tests.common.ejbs.stateful.containermanaged.security.SFSBSecurityRoles, org.ow2.easybeans.tests.common.ejbs.stateless.containermanaged.security.SLSBSecurityRoles,
SecurityRolesBase | public class SecurityRolesBase implements ItfSecurityRoles(Code) | | Containes different types of polices. In this class, the methods do nothing,
but has different types of polices.
author: Gisele Pinheiro Souza author: Eduardo Studzinski Estima de Castro |
denyAllAttribute | public void denyAllAttribute()(Code) | | Method with the polcie denyAll.
|
getCallerPrincipal | public Principal getCallerPrincipal()(Code) | | Returns the bean caller principal.
the caller principal. |
isCallerinRole | public boolean isCallerinRole(String role)(Code) | | Compares the role in the parameter with the caller in role.
Parameters: role - the role name. true if the caller has the role in the parameter, falseotherwise. |
permitAllAttribute | public void permitAllAttribute()(Code) | | Method with the police permiteAll.
|
permitOneRole | public void permitOneRole()(Code) | | Method that can be accessed only by the mainrole.
|
permitRolesOnBean | public void permitRolesOnBean()(Code) | | Test the Roles declared on the bean class.
This has to be inherited by the method if nothing is set.
|
permitTwoRoles | public void permitTwoRoles()(Code) | | Method that can be accessed only by the mainrole and the secondaryrole.
|
testCallerPrincipal | public boolean testCallerPrincipal()(Code) | | Calls a method in other bean that returns the callerPrincipal. It
compares its caller with the caller returned. The caller for the two
methods must be the same.
true if the bean caller and the bean callee are called by thesame role, false otherwise. |
|
|