|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.objectweb.easybeans.container.info.security.MethodSecurityInfo
public class MethodSecurityInfo
Used to describe permission information for a given method.
Field Summary | |
---|---|
private boolean |
excluded
Excluded method ?. |
private java.security.Permission |
permission
Permission for this method. |
private java.util.List<java.lang.String> |
roles
List of roles for this method. |
private boolean |
unchecked
Unchecked method ?. |
Constructor Summary | |
---|---|
MethodSecurityInfo()
Default constructor. |
Method Summary | |
---|---|
void |
addRole(java.lang.String roleName)
Add the given role to the list of roles allowed to call this method. |
java.security.Permission |
getPermission()
|
java.util.List<java.lang.String> |
getRoles()
|
boolean |
isExcluded()
|
boolean |
isUnchecked()
|
void |
setExcluded(boolean excluded)
This method is excluded (no call allowed if true). |
void |
setPermission(java.security.Permission permission)
Sets the permission. |
void |
setUnchecked(boolean unchecked)
This method is unchecked (if true, all calls are allowed to this method). |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
private boolean excluded
private boolean unchecked
private java.util.List<java.lang.String> roles
private java.security.Permission permission
Constructor Detail |
---|
public MethodSecurityInfo()
Method Detail |
---|
public void setExcluded(boolean excluded)
setExcluded
in interface IMethodSecurityInfo
excluded
- boolean true/false.public boolean isExcluded()
isExcluded
in interface IMethodSecurityInfo
public void setUnchecked(boolean unchecked)
setUnchecked
in interface IMethodSecurityInfo
unchecked
- boolean true/false.public boolean isUnchecked()
isUnchecked
in interface IMethodSecurityInfo
public void addRole(java.lang.String roleName)
addRole
in interface IMethodSecurityInfo
roleName
- the name of the role.public java.util.List<java.lang.String> getRoles()
getRoles
in interface IMethodSecurityInfo
public void setPermission(java.security.Permission permission)
setPermission
in interface IMethodSecurityInfo
permission
- the permission to set.public java.security.Permission getPermission()
getPermission
in interface IMethodSecurityInfo
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |