com.ibm.wsspi.security.policy

Interface EJBSecurityPolicy


  1. public interface EJBSecurityPolicy
Represents the security policy associated with a method of an Enterprise Bean. The effective policy information is obtained by the EJB container from deployment descriptor data and/or security annotations.
Since:
WAS 7.0
Version:
WAS 7.0

Method Summary

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

Method Detail

getRolesAllowed

  1. java.lang.String[] getRolesAllowed( )
Return a String array containing all security roles that are allowed to execute this method.
Returns:
String array containing all security roles that are allowed to execute this method.

getRunAsSpecifiedIdentity

  1. java.lang.String getRunAsSpecifiedIdentity( )
Return a String indicating the run-as identity for the execution of this method.
Returns:
String indicating the run-as identity for the execution of this method.

isDenyAll

  1. boolean isDenyAll()
Return boolean indicating that no security roles are allowed to execute this method.
Returns:
boolean indicating if all roles are not to be permitted to execute this method.

isPermitAll

  1. boolean isPermitAll()
Return boolean indicating that all security roles are allowed to execute this method.
Returns:
boolean indicating if all roles are permitted to execute this method.

isRunAsCallerIdentity

  1. boolean isRunAsCallerIdentity()
Return a boolean indicating if the identity for the execution of this method is to come from the caller.
Returns:
boolean indicating if the identity for the execution of this method is to come from the caller.

setDenyAll

  1. void setDenyAll(boolean isDenyAll)
Set boolean indicating that no security roles are allowed to execute this method.

setPermitAll

  1. void setPermitAll(boolean isPermitAll)
Set boolean indicating that all security roles are allowed to execute this method.

setRolesAllowed

  1. void setRolesAllowed(java.lang.String[] rolesAllowed)
Set a String array containing all security roles that are allowed to execute this method.
Parameters:
rolesAllowed -

setRunAsCallerIdentity

  1. void setRunAsCallerIdentity(boolean isRunAsCallerIdentity)
Set a boolean indicating if the identity for the execution of this method is to come from the caller.
Parameters:
isRunAsCallerIdentity -

setRunAsSpecifiedIdentity

  1. void setRunAsSpecifiedIdentity( java.lang.String runAsSpecifiedIdentity)
Set a String indicating the run-as identity for the execution of this method.
Parameters:
runAsSpecifiedIdentity -