public interface EJBSecurityPolicy
Modifier and Type | Method and Description |
---|---|
java.lang.String[] |
getRolesAllowed()
Return a String array containing all security roles that are
allowed to execute this method.
|
java.lang.String |
getRunAsSpecifiedIdentity()
Return a String indicating the run-as identity for the execution of this
method.
|
boolean |
isDenyAll()
Return boolean indicating that no security roles are allowed
to execute this method.
|
boolean |
isPermitAll()
Return boolean indicating that all security roles are allowed
to execute this method.
|
boolean |
isRunAsCallerIdentity()
Return a boolean indicating if the identity for the execution of this
method is to come from the caller.
|
void |
setDenyAll(boolean isDenyAll)
Set boolean indicating that no security roles are allowed
to execute this method.
|
void |
setPermitAll(boolean isPermitAll)
Set boolean indicating that all security roles are allowed
to execute this method.
|
void |
setRolesAllowed(java.lang.String[] rolesAllowed)
Set a String array containing all security roles that are
allowed to execute this method.
|
void |
setRunAsCallerIdentity(boolean isRunAsCallerIdentity)
Set a boolean indicating if the identity for the execution of this
method is to come from the caller.
|
void |
setRunAsSpecifiedIdentity(java.lang.String runAsSpecifiedIdentity)
Set a String indicating the run-as identity for the execution of this
method.
|
java.lang.String[] getRolesAllowed()
java.lang.String getRunAsSpecifiedIdentity()
boolean isDenyAll()
boolean isPermitAll()
boolean isRunAsCallerIdentity()
void setDenyAll(boolean isDenyAll)
isPermitAll
- void setPermitAll(boolean isPermitAll)
isDenyAll
- boolean indicating that all security roles are allowed
to execute this method.void setRolesAllowed(java.lang.String[] rolesAllowed)
rolesAllowed
- void setRunAsCallerIdentity(boolean isRunAsCallerIdentity)
isRunAsCallerIdentity
- void setRunAsSpecifiedIdentity(java.lang.String runAsSpecifiedIdentity)
runAsSpecifiedIdentity
-