|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.objectweb.easybeans.container.info.security.SecurityInfo
public class SecurityInfo
Runtime info about security.
Field Summary | |
---|---|
private java.util.List<java.lang.String> |
declaredRoles
List of roles. |
private java.util.List<IMethodSecurityInfo> |
methodSecurityInfos
List of methods. |
private java.lang.String |
runAsRole
Name of the run-as role. |
private javax.security.auth.Subject |
runAsSubject
Subject for run-as role. |
Constructor Summary | |
---|---|
SecurityInfo()
Default constructor. |
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. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
private java.util.List<java.lang.String> declaredRoles
private java.util.List<IMethodSecurityInfo> methodSecurityInfos
private java.lang.String runAsRole
private javax.security.auth.Subject runAsSubject
Constructor Detail |
---|
public SecurityInfo()
Method Detail |
---|
public void addMethodSecurityInfo(IMethodSecurityInfo methodSecurityInfo)
addMethodSecurityInfo
in interface ISecurityInfo
methodSecurityInfo
- the info about security.public java.util.List<IMethodSecurityInfo> getMethodSecurityInfos()
getMethodSecurityInfos
in interface ISecurityInfo
public void setRunAsRole(java.lang.String runAsRole)
setRunAsRole
in interface ISecurityInfo
runAsRole
- the name of the role.public java.lang.String getRunAsRole()
getRunAsRole
in interface ISecurityInfo
public javax.security.auth.Subject getRunAsSubject()
getRunAsSubject
in interface ISecurityInfo
public void addDeclaredRole(java.lang.String roleName)
addDeclaredRole
in interface ISecurityInfo
roleName
- the name of a role.public java.util.List<java.lang.String> getDeclaredRoles()
getDeclaredRoles
in interface ISecurityInfo
public void setDeclaredRole(java.util.List<java.lang.String> declaredRoles)
setDeclaredRole
in interface ISecurityInfo
declaredRoles
- list of declared roles.
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |