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


public interface ISecurityInfo

Runtime info about security.

Author:
Florent Benoit

Method Summary
 void addDeclaredRole(String roleName)
          Adds a role for this bean (for isCallerInRole).
 void addMethodSecurityInfo(IMethodSecurityInfo methodSecurityInfo)
          Adds a method containing security.
 List<String> getDeclaredRoles()
           
 List<IMethodSecurityInfo> getMethodSecurityInfos()
           
 String getRunAsRole()
          Gets run-as name.
 Subject getRunAsSubject()
          Gets run-as role subject.
 List<org.ow2.util.ee.metadata.common.api.xml.struct.ISecurityRoleRef> getSecurityRoleRefList()
          Gets the list of <security-role-ref> elements.
 void setDeclaredRole(List<String> declaredRoles)
          Sets the list of declared roles.
 void setRunAsRole(String runAsRole)
          Sets the name of the run-as security role.
 

Method Detail

addDeclaredRole

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

Parameters:
roleName - the name of a role.

setDeclaredRole

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

Parameters:
declaredRoles - list of declared roles.

getDeclaredRoles

List<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

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

setRunAsRole

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

Parameters:
runAsRole - the name of the role.

getRunAsRole

String getRunAsRole()
Gets run-as name.

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

getRunAsSubject

Subject getRunAsSubject()
Gets run-as role subject.

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

getSecurityRoleRefList

List<org.ow2.util.ee.metadata.common.api.xml.struct.ISecurityRoleRef> getSecurityRoleRefList()
Gets the list of <security-role-ref> elements.

Returns:
list of <security-role-ref> elements.


Copyright © 2006-2012 OW2 Consortium. All Rights Reserved.