org.objectweb.easybeans.api.bean.info
Interface ISecurityInfo

All Known Implementing Classes:
SecurityInfo

public interface ISecurityInfo

Runtime info about security.

Author:
Florent Benoit

Method Summary
 void addDeclaredRole(java.lang.String roleName)
          Adds a role for this bean (for isCallerInRole).
 void addMethodSecurityInfo(IMethodSecurityInfo methodSecurityInfo)
          Adds a method containing security.
 java.util.List<java.lang.String> getDeclaredRoles()
           
 java.util.List<IMethodSecurityInfo> getMethodSecurityInfos()
           
 java.lang.String getRunAsRole()
          Gets run-as name.
 javax.security.auth.Subject getRunAsSubject()
          Gets run-as role subject.
 void setDeclaredRole(java.util.List<java.lang.String> declaredRoles)
          Sets the list of declared roles.
 void setRunAsRole(java.lang.String runAsRole)
          Sets the name of the run-as security role.
 

Method Detail

addDeclaredRole

void addDeclaredRole(java.lang.String roleName)
Adds a role for this bean (for isCallerInRole).

Parameters:
roleName - the name of a role.

setDeclaredRole

void setDeclaredRole(java.util.List<java.lang.String> declaredRoles)
Sets the list of declared roles.

Parameters:
declaredRoles - list of declared roles.

getDeclaredRoles

java.util.List<java.lang.String> getDeclaredRoles()
Returns:
list of roles declared for this bean.

addMethodSecurityInfo

void addMethodSecurityInfo(IMethodSecurityInfo methodSecurityInfo)
Adds a method containing security.

Parameters:
methodSecurityInfo - the info about security.

getMethodSecurityInfos

java.util.List<IMethodSecurityInfo> getMethodSecurityInfos()
Returns:
list of security infos on all methods.

setRunAsRole

void setRunAsRole(java.lang.String runAsRole)
Sets the name of the run-as security role.

Parameters:
runAsRole - the name of the role.

getRunAsRole

java.lang.String getRunAsRole()
Gets run-as name.

Returns:
the name of the security role for the run-as.

getRunAsSubject

javax.security.auth.Subject getRunAsSubject()
Gets run-as role subject.

Returns:
a subject with run-as role as role.