com.ibm.wsspi.security.policy

Interface EJBSecurityPolicy



  • 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

      Methods 
      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.
    • Method Detail

      • getRolesAllowed

        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

        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

        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

        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

        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

        void setDenyAll(boolean isDenyAll)
        Set boolean indicating that no security roles are allowed to execute this method.
        Parameters:
        isPermitAll -
      • setPermitAll

        void setPermitAll(boolean isPermitAll)
        Set boolean indicating that all security roles are allowed to execute this method.
        Parameters:
        isDenyAll - boolean indicating that all security roles are allowed to execute this method.
      • setRolesAllowed

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

        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

        void setRunAsSpecifiedIdentity(java.lang.String runAsSpecifiedIdentity)
        Set a String indicating the run-as identity for the execution of this method.
        Parameters:
        runAsSpecifiedIdentity -
IBM WebSphere Application ServerTM
Release 9.0